- discord.js
applications.commandsscope enabled for bot (to use Slash commands)- TypeScript
- Node
/meet: introduces users to Marcel Toing
Commands are implemented using command handlers and stored in ./commands.
Events are implemented using event handlers and stored in ./events
Helper modules, such as validateEnv.js for loading environment variables, are stored in ./modules.
Bot utilities, such as those for loading and registering commands, are stored in ./utils.
Configuration is stored in .env.dev and .env.prod.
The following values are required:
| Value | Description |
|---|---|
BOT_TOKEN |
Discord bot API token. |
CLIENT_ID |
The bot application ID. |
GREETING_CHANNEL_ID |
The ID of the channel to which a greeting message is sent. |
NODE_ENV |
The environment in which the bot is running (e.g. prod). |
GUILD_ID |
The ID of the home guild in which the bot is running. |
See .env.dev.example for how to specify these values.
All you need to do is go to https://www.discord.com/developers and create a new application. This will give you the token and client ID, which you can then use to connect the bot to a test server. If you're adding something new, just create a pull request.
The easiest way to test the bot is to just execute npm run start:dev. It will then restart itself any time there are code changes.