Module: Qbot
- Defined in:
- lib/qbot.rb,
lib/qbot/app.rb,
lib/qbot/base.rb,
lib/qbot/adapter.rb,
lib/qbot/autorun.rb,
lib/qbot/storage.rb,
lib/qbot/version.rb,
lib/qbot/embed/cron.rb,
lib/qbot/embed/echo.rb,
lib/qbot/embed/help.rb,
lib/qbot/embed/ping.rb,
lib/qbot/adapter/shell.rb,
lib/qbot/adapter/slack.rb,
lib/qbot/storage/memory.rb,
lib/qbot/storage/leveldb.rb,
lib/qbot/adapter/mattermost.rb
Defined Under Namespace
Modules: Adapter, Delegator, Storage
Classes: Application, Base, Cron, Echo, Help, Message, Ping
Constant Summary
collapse
- VERSION =
"0.1.1"
Class Method Summary
collapse
Class Method Details
.app ⇒ Object
11
12
13
|
# File 'lib/qbot/app.rb', line 11
def app
Qbot::Application.instance
end
|
.autorun ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/qbot/autorun.rb', line 5
def self.autorun
at_exit do
exit if $!
i{INT TERM}.each do |signal|
Signal.trap(signal) { exit }
end
Qbot.run!(ARGV)
end
end
|
.run!(*args) ⇒ Object
15
16
17
|
# File 'lib/qbot/app.rb', line 15
def run!(*args)
app.start
end
|