Skip to content

Repository files navigation

kevinbot 2.0

This is kevinbot. He is the chatbot at Intrepid.

Start

ruby kevinbot.rb

Make a new command

Create a new class named the same as your command inheriting from BaseCommand. For example, if your command is /mycoolcommand:

commands/mycoolcommand.rb
classMycoolcommand < BaseCommand#...end

Craft your response to Slack in the perform method:

commands/mycoolcommand.rb
classMycoolcommand < BaseCommanddefperformtext='Look how cool this is'endend

Send it back to Slack with the respond method:

commands/mycoolcommand.rb
classMycoolcommand < BaseCommanddefperformtext='Look how cool this is'respond(text)endend

Make a new slash command on Slack with these settings:

FieldValue
Command/rave
URLhttps://kevinbot2.herokuapp.com/
MethodPOST

About

Resources

Stars

0 stars

Watchers

52 watching

Forks

Releases

Packages

Contributors

Languages