A ruby slack bot that assists you when ordering your lunch.
You have to set these enviorment variables to the ones you have on Slack.
export SLACK_CLIENT_ID="XXXX.XXXX"
export SLACK_API_SECRET="XXXX"
export SLACK_VERIFICATION_TOKEN="XXXX"
export SLACK_REDIRECT_URI="XXXX"
If you want BambooHR to automatically mark people out:
export BAMBOO_HR_API_KEY="XXXX"
Type help or look in the command_info.rb file to view all commands.
- Create an error message moudle.
- Emoji responses sepcific to lunch order.
You can add a new command with
ruby ./bin/command_creator.rb new command ClassName
This will create a command with the method need in: lib/commands
and its test in spec/commands
.
To make your new command effective you simply need to add your commands class to the lib/request_parser
.
To make the code consistent we ask you to use Rubocop. Note that Rubocop isn't configured to run on the pipeline, it's up to the developers to check the code they commit.
gem install rubocop
rubocop