aboutsummaryrefslogtreecommitdiff
path: root/module/config.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 14:17:44 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-21 14:17:44 -0700
commited04bd3c0fff100f40ed45d300fcb152723226ef (patch)
treebe80f6bc8370126e899a7b53be6fa319a3b1c2af /module/config.rb
parent8fd8c27562184a18000d32d96921fbb0ca8045be (diff)
downloaddinobot-ed04bd3c0fff100f40ed45d300fcb152723226ef.tar.gz
dinobot-ed04bd3c0fff100f40ed45d300fcb152723226ef.tar.xz
Move response validation out of main code.
Diffstat (limited to 'module/config.rb')
-rw-r--r--module/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/config.rb b/module/config.rb
index fa3c151..cf71bd4 100644
--- a/module/config.rb
+++ b/module/config.rb
@@ -17,9 +17,9 @@ module Dinobot
case args
when 'trigger'
- m.response << [:say, m.channel, @config.data[:trigger][:global]]
+ m.respond [:say, m.channel, @config.data[:trigger][:global]]
when 'debug'
- m.response << [:say, m.channel, @config.data[:debug].to_s]
+ m.respond [:say, m.channel, @config.data[:debug].to_s]
end
end