Class: Jambots::Cli

Inherits:
Thor
  • Object
show all
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(options)
  chat_controller.chat(query)
end

#initObject



10
11
12
13
# File 'lib/jambots/cli.rb', line 10

def init
  init_controller = Controllers::InitController.new(options)
  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(options)
  new_controller.create_bot(name)
end