Class: Jambots::Cli
- Inherits:
-
Thor
- Object
- Thor
- Jambots::Cli
- Defined in:
- lib/jambots/cli.rb
Constant Summary collapse
- DEFAULT_BOT =
"jambot"
Instance Method Summary collapse
Instance Method Details
#chat(query) ⇒ Object
20 21 22 23 |
# File 'lib/jambots/cli.rb', line 20 def chat(query) chat_controller = Controllers::ChatController.new() chat_controller.chat(query) end |
#init ⇒ Object
10 11 12 13 |
# File 'lib/jambots/cli.rb', line 10 def init init_controller = Controllers::InitController.new() init_controller.init_jambots_path end |
#new(name) ⇒ Object
29 30 31 32 |
# File 'lib/jambots/cli.rb', line 29 def new(name) new_controller = Controllers::NewController.new() new_controller.create_bot(name) end |