Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bot-zero

Hubot is a fantastic project that enabled us to build great bots. The aim of this project is twofold:

  1. Provide an "empty" project to build your own Slack chat bot
  2. Provide example implementation of tool(s) / commands that run on ES6 (instead of Coffee-script).

Getting started

Starting this project is really easy:

  1. Fork this project (top right corner)
  2. Clone your forked project to your pc.
  3. Goto http://slackapi.github.io/hubot-slack/#getting-a-slack-token to read up on how to get a Slack token for your bot.
  4. Add the token to your environment.
  5. Start the bot from the terminal using npm start.
  6. Enjoy!

Good to know

Packages
We've included some packages:

  • axios: a promise-based HTTP client. Makes it easier to use promises of your HTTP requests.
  • dotenv: allows you to store environment variables in the .env file in the root of the project.
  • hubot-command-mapper: allows for the mapping of commands with parameters to the Hubot without the need for regular expressions.

NPM
Use NPM to interact with the bot:

  • npm start will start the bot.
  • npm test will kick of the tests of the bot. They are located in the tests directory. Testing is done using Hubot Pretend.

Clean up
The bot was generated using the Slack Developer Kit for Hubot. It was "cleaned" using a script from Cleaning up the Default Hubot Installation.

Tech

We're using the following stack:

  • NodeJs
  • ES6
  • Hubot
  • NPM

About

An "empty" Hubot project that can be used to build your own Slack bot.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages