https://github.com/ilsubyeega/worker-discord-template
https://github.com/ilsubyeega/worker-discord-template
cloudflare cloudflare-worker cloudflare-workers discord discord-slash discord-slash-bot discord-slash-commands slash-commands worker workers
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ilsubyeega/worker-discord-template
- Owner: ilsubyeega
- License: mit
- Created: 2022-07-30T14:05:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-30T14:09:11.000Z (over 2 years ago)
- Last Synced: 2025-01-29T12:32:11.577Z (3 months ago)
- Topics: cloudflare, cloudflare-worker, cloudflare-workers, discord, discord-slash, discord-slash-bot, discord-slash-commands, slash-commands, worker, workers
- Language: TypeScript
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# worker-discord-template
Discord bot template for Cloudflare Workers.
- The interaction endpoint url is `/` itself.# Environment Variables
Put your environment variables with `wrangler secret put [KEY]`
- `BOT_TOKEN` : Discord Bot Token
- `PUBKEY` : Public Key for your discord bot (Available in General Information section)
- `APPLICATION_ID` : Application ID for your discord bot
- `DEVSECRET` : The secret code that you can use `/register` for registering the commands# Structure
```
src
├── autocompletes # The set of autocompletes
├── commands # The set of commands
├── components # The set of components
├── modals # The set of modals
└── lib # The misc things such like types are here
index.ts # Main file that does every web stuffs, and registering commands.
registered.ts # Insert the commands, autocompletes, components, modals in the registered.ts
```
# LICENSE
MIT