Discord and Slack bot codebase.
To run this setup, you need Node.js 16 installed. This monorepo uses PNPM workspaces and you can install pnpm
by either running corepack enable
or npm i pnpm -g
.
- Clone repository
pnpm install
- Finish Discord and Slack application setup (separate apps/tokens should be setup for dev and prod)
- Deploy to a Render instance or run locally
Refer to the discord bot
README.
Refer to the slack bot
README.
Build command: pnpm install
Start command: pnpm start
Environment variables to load:
DISCORD_TOKEN=
DISCORD_APP_ID=
SLACK_BOT_TOKEN=
SLACK_SIGNING_SECRET=
SLACK_CLIENT_ID=
SLACK_CLIENT_SECRET=
SLACK_STATE_SECRET= // You can choose any string as this will be used to encode/decode oauth flows
DB_HOST=
DB_PORT=
DB_USER=
DB_PASSWORD=
DB_DATABASE=
Once ready, you can install Slack Apps with https://<yourdomain.com>/slack/install
and Discord Bots with the generated invite URL setup in the Discord Application Setup README.