Skip to content

jsdelivr/globalping-chat-bots

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •