A simple Discord bot that responds with "hello!" whenever someone mentions its name.
- Go to Discord Developer Portal
- Click "New Application"
- Give it a name (e.g., "Jackabot")
- Go to the "Bot" section
- Click "Add Bot"
- Copy the bot token
- Edit
config.jsonand replace the placeholder values:token: Your bot token from step 1clientId: Your application's client IDguildId: Your Discord server ID (optional)
- In the Discord Developer Portal, go to "OAuth2" > "URL Generator"
- Select scopes:
bot - Select permissions:
Send Messages,Read Message History - Use the generated URL to invite the bot to your server
npm installnpm startOnce the bot is running, simply type "jackabot" in any channel and it will respond with "hello!"
To run with auto-restart on file changes:
npm run dev