Skip to content

A slack bot that assists you when ordering lunch.

Notifications You must be signed in to change notification settings

willcurry/LunchBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LunchBot

A ruby slack bot that assists you when ordering your lunch.

Build Status Coverage Status

Configuring

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"

Slack Commands

Type help or look in the command_info.rb file to view all commands.

TODO

  • Create an error message moudle.
  • Emoji responses sepcific to lunch order.

Development

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.

Coding Conventions

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

About

A slack bot that assists you when ordering lunch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages