Yet another fun gliftastic bot
requires
- nodejs 18
- pnpm
- discord API token (free)
- glif API token (free)
- Register a new bot on Discord Developer Portal.
DISCORD_APPLICATION_ID
is on the main page; this Application ID is also sometimes called a Client ID. Then go the "Bot" page and click "Reset Token" to getDISCORD_BOT_TOKEN
.
Copy .env.example to .env and fill in the values
Lastly, install the bot to your server by adding YOUR_APPLICATION_ID to a URL like:
This will install bot user who can add slash commands, but not read or post normal messages or do anything else.
To get read/write message permissions, you'll need to enable the various Privileged Gateway Intents in your bot's configuration on the Discord Developer Portal, and then add a permissions mask like so:
Install dependencies
pnpm install
To run in development mode, reloading on code changes:
pnpm dev
To run in production mode:
pnpm build
pnpm start