energon slack slave
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
Info Changing workspace name to something more fancy Jan 7, 2019
emojis Add files via upload Feb 14, 2019
scripts Fix @LucianoAdonis comments Feb 15, 2019
spec [ANGLE] Update tests Jan 4, 2019
.dockerignore Add docker support Feb 9, 2019
.gitignore Add docker support Feb 9, 2019
.rubocop.yml More fixes Nov 22, 2018
Dockerfile Remove unnecessary path Feb 10, 2019
Gemfile Remove net-ssh gem and add rubocop, pry Feb 10, 2019
LICENSE Create LICENSE Oct 21, 2018
Makefile Add docker support Feb 9, 2019
Procfile Create Procfile Oct 3, 2018
README.md Workaround for badge until Ivan arrives Feb 11, 2019
core.rb Love extended ❤️ Feb 15, 2019
docker-compose.yml Ups new line Feb 9, 2019
system.rb Add names that match function Jan 31, 2019


ENERBOT (Slack Slave)

This software is Blessed Codacy Badge

Based on the bototo3000, a strong independent bot that is written on Ruby and only uses the Slack Ruby Client to look cooler. Is design for small talks and AGILE teams.

He likes cubes.


Main functionalities:

  • enerbot: the bot.
  • enersay: be surprise by the miracle of Machile Learning.
  • enershut: we build this feature because sometimes it gains consiousness and very often even learns to love.

Getting started


A computer.

  • Install Ruby.
  • Install Ruby Version Management. RVM lets you easily work with multiple versions of Ruby.
  • Install Bundler to get all dependencies or you could stay in the dependency abyss by installing each dependency manually. It's your choice.

We highly recommend you to use the Ruby 2.5.1 version because it works on our machines. You can check your current version with:

ruby --version

Setting a new version with RVM its just executing:

rvm install 2.5.1
rvm use 2.5.1


Download the repository.

git clone https://github.com/energon-a-secas/enerbot-slack.git

To get all dependencies of the enerbot execute use bundle install inside of the repository.

Optional step

You can take all the magic of ENERGON to your current Slack space by importing our beloved crafted custom emojis, and be the coolest kid in the hood. Please, refer to Add custom emoji.


You need to export the following parameters as environment variables:

  • SLACK_API_TOKEN: it lets you connect the bot with de Slack space.
  • SLACK_LOG_CHANNEL: this will be the channel where all your confidential (or mostly boring) logs ends up.
  • SLACK_USERS: list of users that can access to features like 'enershut' or 'enersay'
  • SLACK_CHANNELS: list of authorized channels where your bot can be consulted.
  • SLACK_ICON: set a custom image for the bot.
  • SLACK_NAME: set a custom name fot the bot.

Running the Enerbot

Do this:

ruby client.rb


Run Enerbot inside of a container just to be popular.

docker build -t enerbot .

Alternative you can just put your credentials on the makefile and the run make deploy

Docker Compose

In this scenario docker-compose will provide the variables to the container using the .env file. It should look something like this:


To build the image, you need to run:

docker-compose build enerbot

At Energon, we highly recommend to run without the detach mode for debug purposes.

docker-compose up enerbot

But if you instead run the container with the detach mode, you can use docker-compose logs -f -t enerbot to get the logs from the container.

Contributing ❤️

If you have any doubts or you want to see a new feature, please feel free to contact us by open an issue.


See the LICENSE file for license rights and limitations (MIT).