This bot is based off Svelte Bot. It's hosted on a DigitalOcean App instance that will automatically detect any updates to the main branch and deploy those changes.
- Environment: All secrets should be in a
.envfile. The template/example can be found at env.exampleNODE_ENV: Any value other thanproductionwill set the bot use the dev IDs defined belowDISCORD_TOKEN: The bot's private token from DiscordDEV_GUILD_ID: Guide/server to test the bot inDEV_ADMIN_ROLE: A role or user ID that the bot will consider an administratorDEV_HELP_CHANNEL: Channel(s) to automatically thread any messages in (see the Threads functionality below)DEV_SUPPORT_FORUM_CHANNEL: Support forum channel id
src/config.ts: The bots main config is located at src/config.tsADMIN_ROLES: Role or user IDs that the bot will consider administrators
- x
thread: These are commands to manage forum threads. They can be used by the person who initiated the thread or by people/roles defined inTHREAD_ADMIN_IDS./thread solve: Replaces theunsolvedtag withsolved.
Click on the links below to view the documentation on the different parts of the bot's tech stack:
All contributions are welcome, please try and make an issue first since most new features might warrant a discussion beforehand. Bug fixes probably won't need an issue and direct pull requests are ok for them.
-
Once you have the bot cloned then you need to make a .env file and fill out the fields:
cp .env.example .env
-
Run the bot with
pnpm dev
The bot uses Node.js' built-in TypeScript support so there's no build step involved.
pnpm start