Last active
June 20, 2016 08:31
-
-
Save MaksimAbramchuk/9594d95ff6d09c4609452ed7532d7b51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module BotCommand | |
class Start < Base | |
def should_start? | |
text =~ /\A\/start/ | |
end | |
def start | |
send_message('Hello! Here is a simple quest game! Type /born to start your interesting journey to the Rails rockstar position!') | |
user.reset_next_bot_command | |
user.set_next_bot_command('BotCommand::Born') | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment