It's a very light project in NodeJS for create a slack bot and interact with an external API for send Chuck Norris Fact with your name inside !
-
Create your bot on you're Slack Team administration panel. Check doc here : https://api.slack.com/bot-users
-
Now you can invite the bot on you're channel !
-
Get the token of this bot. (Don't forget to keep it secret !) Format : "xoxp-XXXXXXXX-XXXXXXXX-XXXXX"
-
Clone or download this repo. Don't forget to install NPM dependencies !
npm install
-
Paste the token in
app.js : line 8
.
Launch the app.js file.
node app.js
Just write in a channel where the bot is :
"Am I a god ?" or "Roundhouse kick" or "I am Chuck Norris"
And enjoy the roundhouse kick in your mate's face !
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Roundhouse kick in your face API : http://www.icndb.com/api/ Bot interface used : Botkit https://github.com/howdyai/botkit (Check the repo for more examples or another platforms !)
The MIT License (MIT)
Copyright (c) 2016 Clément Le Biez
Check LICENSE file for more informations