Folders and files Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
Â
View all files
Repository files navigation
Snyk:
Create a new slack app
Copy Signing Secret
Go to Features > Oauth & Permissions and grant the following permissions:
channels:history: the bot needs to be able to read messages that are reacted to
chat:write: for the bot to write messages
reactions:read: so that the bot can react to reaction events
groups:history: so that the bot can read and react to messages sent in private channels
users:read: so that the bot can determine if a user is a bot or not
Install app in workspace
Copy the Bot User Oauth Toekn
Enable Socket Mode in Settings > Socket Mode
this should force you to create an app token and add the connections:write scope
Copy the newly created App-Level Token in Settings > Basic Information
Go to Features > Event Subscriptions and enable the following bot events:
message.channels: so that the bot can react to messages sent in channels
reaction_added: so the bot can react to reactions added to messages
reaction_removed: so that the bot can react to reactions removed from messages
message.groups: so the bot can react to messages sent to private channels
Add a slack command for /leaderboard
export the following environment variables (copied when creating the app):
SLACK_BOT_TOKEN
SLACK_SIGNING_SECRET
SLACK_APP_TOKEN
run the app with npm start
Run npm test to run the tests
Run npm run test:coverage to run the tests with coverage output
export the following environment variables (copied when creating the app):
SLACK_BOT_TOKEN
SLACK_SIGNING_SECRET
SLACK_APP_TOKEN
run the app with npm run docker:build-and-run
About
A self hosted slack app to show your appreciate for your team 🥑 basically a HeyTaco clone but using avocados
Topics
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.