A dead simple Slack bot to help you and your team record conversation.
Also comes with a 🎨 client side.
-
Invite @usability-rover to the channel.
-
"@usability-rover start"
The rober will now start a recording of the channel you're in. -
Discuss and note over Slack with your team.
-
"@usability-rover end"
Finish the session, and store it at ./lib/data
-
Fork this project.
-
Open up your favorite terminal app, and clone your new repository to your local computer.
-
This is a Node.js project, so you’ll need to install the various dependencies by running: npm install
-
Edit
package.json
to give your bot a name and update the GitHub URLs to reflect the location of your fork in GitHub. -
Go to https://my.slack.com/apps/new/A0F7YS25R-bots and pick a name for your new bot.
-
Once you’ve clicked “Add integration,” you’ll be taken to a page where you can further customize your bot. Of importance is the bot token—take note of it now.
-
Once you have the token, you can run your bot easily:
TOKEN=xoxb-your-token-here npm start
Your bot will now attempt to log into your team, and you should be able talk to it. Telling it to "start"
-
Botkit is structured around event listeners. The most important is the “hear” listener, which kicks off an action when your bot hears something.
index.js
contains the core logic, and has this event listener:controller.hears('hello','direct_message', function(bot,message) { bot.reply(message, 'Hello!'); });
This event handler is triggered when the bot receives a direct message from a user that contains the word “hello.”