A bot for tracking COVID-19 vaccination status of a Slack channel.
npm install
npm install knex@0.21.19 -g
Create a new Slack app.
Scopes -> Bot Token Scopes:
- app_mentions:read
- channels:read
- chat:write
Enable Events: On
Request URL: {$DOMAIN}/slack/events
Subscribe to bot events: app_mention
Request URL: {$DOMAIN}/slack/events
Install to workspace
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
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
Invite the bot to the Slack channel:
/invite @dumbreka
@mention the bot to get the ball rolling:
@Dumbreka
MIT
