Module: RSlack
- Defined in:
- lib/rslack.rb,
lib/rslack/api.rb,
lib/rslack/bot.rb,
lib/rslack/action.rb,
lib/rslack/version.rb,
lib/rslack/actions/cron.rb,
lib/rslack/actions/echo.rb,
lib/rslack/actions/help.rb,
lib/rslack/actions/ping.rb
Defined Under Namespace
Classes: APIClient, Action, Bot, CronAction, EchoAction, HelpAction, PingAction
Constant Summary collapse
- VERSION =
"0.2.7"
Class Method Summary collapse
Class Method Details
.run(args = ARGV) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/rslack.rb', line 10 def run(args = ARGV) bot = build(args) Signal.trap(:INT) do bot.stop(force: true) end bot.start end |