Last active
June 20, 2016 07:40
-
-
Save MaksimAbramchuk/ffb3190b139c0463616aa2004be5f623 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 AccomplishTutorial < Base | |
| def should_start? | |
| text =~ /\A\/accomplish_tutorial/ | |
| end | |
| def start | |
| send_message("It was hard, but it’s over! Models, controllers, views, wow, a lot stuff! Let’s practice now. What do you think about writing a Rails blog? Type /write_blog to continue.") | |
| user.set_next_bot_command(‘BotCommand::WriteBlog’) | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment