Last active
June 20, 2016 07:38
-
-
Save MaksimAbramchuk/1c0f9c805ff687bc5ae1acdbc29e3566 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 Born < Base | |
| def should_start? | |
| text =~ /\A\/born/ | |
| end | |
| def start | |
| send_message("You have been just born! It’s time to learn some programming stuff. Type /accomplish_tutorial to start learning Rails from simple tutorial!") | |
| user.set_next_bot_command('BotCommand::AccomplishTutorial') | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment