This is kevinbot. He is the chatbot at Intrepid.
ruby kevinbot.rb
Create a new class named the same as your command inheriting from BaseCommand. For example, if your command is /mycoolcommand:
class Mycoolcommand < BaseCommand
#...
endclass Mycoolcommand < BaseCommand
def perform
text = 'Look how cool this is'
end
endclass Mycoolcommand < BaseCommand
def perform
text = 'Look how cool this is'
respond(text)
end
endMake a new slash command on Slack with these settings:
| Field | Value |
|---|---|
| Command | /rave |
| URL | https://kevinbot2.herokuapp.com/ |
| Method | POST |