Skip to content

bertrandom/dumbreka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dumbreka

A bot for tracking COVID-19 vaccination status of a Slack channel.

dumbreka

Installation

npm install
npm install knex@0.21.19 -g 

Create a new Slack app.

Features :: OAuth & Permissions

Scopes -> Bot Token Scopes:

  • app_mentions:read
  • channels:read
  • chat:write

Features :: Event Subscriptions

Enable Events: On

Request URL: {$DOMAIN}/slack/events

Subscribe to bot events: app_mention

Features :: Interactivity & Shortcuts

Request URL: {$DOMAIN}/slack/events

Settings :: Install App

Install to workspace

Settings :: Basic Information

Copy config/default.json5 to config/local.json5 and fill in the information.

Initialize the sqlite DB:

NODE_ENV=dev knex migrate:latest

Start the server:

npm run pm2

Start ngrok:

ngrok http -bind-tls=true -subdomain={$SUBDOMAIN} 8080

Installation (production)

npm install
npm install knex@0.21.19 -g 

Copy config/default.json5 to config/prod.json5 and fill in the information.

Initialize the sqlite DB:

NODE_ENV=prod knex migrate:latest

Start the server:

pm2 start ecosystem.config.js --env production

Usage

Invite the bot to the Slack channel:

/invite @dumbreka

@mention the bot to get the ball rolling:

@Dumbreka

License

MIT

About

A bot for tracking COVID-19 vaccination status of a Slack channel.

Resources

License

Stars

Watchers

Forks

Contributors