This is a simple Discord bot that will respond to messages. It responds to:
- mentions
- Direct Messages (DMs)
- all other messages in channels that bot has access to
bun install
- copy
env-sample
to.env
and fill with proper keys - see below
- Go to Developer Portal: https://discord.com/developers/applications/
- Click "New Application" and create a new application
- Once created, copy Application ID to .env
- Go to "Bot" tab and click "Reset Token"
- Copy newly generated token to .env
- Uncheck "Public Bot"
- Go to "oAuth2" -> "URL Generator" and select permissions:
- bot
- General
- Read Messages/View Channels
- Text Permissions
- Send Messages
- Send Messages in Threads
- Embed Links
- Attach Files
- Add Reactions
- General
- Copy generated URL and paste it in your browser - add bot to your server
bun start