-
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. Try telling your new bot “hello”. It should say “Hello!” back!
Now for step 2!