Class: Jambots::Cli
- Inherits:
-
Thor
- Object
- Thor
- Jambots::Cli
- Defined in:
- lib/jambots/cli.rb
Constant Summary collapse
- DEFAULT_BOT =
"jambot"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
5 6 7 |
# File 'lib/jambots/cli.rb', line 5 def self.exit_on_failure? false end |
Instance Method Details
#chat(query) ⇒ Object
25 26 27 28 |
# File 'lib/jambots/cli.rb', line 25 def chat(query) chat_controller = Controllers::ChatController.new() chat_controller.chat(query) end |
#init ⇒ Object
14 15 16 17 |
# File 'lib/jambots/cli.rb', line 14 def init init_controller = Controllers::InitController.new() init_controller.init_jambots_path end |
#new(name) ⇒ Object
34 35 36 37 |
# File 'lib/jambots/cli.rb', line 34 def new(name) new_controller = Controllers::NewController.new() new_controller.create_bot(name) end |