Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.53 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.53 KB

globalping-chat-bots

Discord and Slack bot codebase.

Initial Setup

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.

  1. Clone repository
  2. pnpm install
  3. Finish Discord and Slack application setup (separate apps/tokens should be setup for dev and prod)
  4. Deploy to a Render instance or run locally

Discord Application Setup

Refer to the discord bot README.

Slack Application Setup

Add to Slack

Refer to the slack bot README.

Deployment

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.