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
#...
end
class Mycoolcommand < BaseCommand
def perform
text = 'Look how cool this is'
end
end
class Mycoolcommand < BaseCommand
def perform
text = 'Look how cool this is'
respond(text)
end
end
Make a new slash command on Slack with these settings:
Field | Value |
---|---|
Command | /rave |
URL | https://kevinbot2.herokuapp.com/ |
Method | POST |