Tuff bot This a slack bot that responds to commands it uses javascrit and node.js
Commands: /tuffbot-ping check the bots latency /tuffbot-help lists all the commands /tuffbot-catfact says a random cat fact /tuffbot-disney gets a random disney character /tuffbot-fact gets a random fact /tuffbot-advice gives a piece of advice /tuffbot-roll [sides] rolls a die (f you dont put in how many sides it deafults to 6 sides) /tuffbot-8ball [question] ask the 8 ball a question
- Clone the repo and install dependencies:
npm install
- Create a
.envfile with your Slack tokens:
SLACK_BOT_TOKEN=xoxb-... SLACK_APP_TOKEN=xapp-...
- Run the bot:
node index.js
-
Slack Bolt (JavaScript)
-
axios for API requests