diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-21 14:17:44 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-21 14:17:44 -0700 |
commit | ed04bd3c0fff100f40ed45d300fcb152723226ef (patch) | |
tree | be80f6bc8370126e899a7b53be6fa319a3b1c2af /module/test.rb | |
parent | 8fd8c27562184a18000d32d96921fbb0ca8045be (diff) | |
download | dinobot-ed04bd3c0fff100f40ed45d300fcb152723226ef.tar.gz dinobot-ed04bd3c0fff100f40ed45d300fcb152723226ef.tar.xz |
Move response validation out of main code.
Diffstat (limited to 'module/test.rb')
-rw-r--r-- | module/test.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/test.rb b/module/test.rb index cfc929b..69bb888 100644 --- a/module/test.rb +++ b/module/test.rb @@ -11,21 +11,21 @@ module Dinobot end def echo(m, args) - m.response << [:say, m.channel, args] + m.respond [:say, m.channel, args] end def ping(m, args) - m.response << [:say, m.channel, 'pong'] + m.respond [:say, m.channel, 'pong'] end def x3(m, args) 3.times do - m.response << [:say, m.channel, args] + m.respond [:say, m.channel, args] end end def fooify(m, args) - m.response << [:say, m.channel, "foo#{args}"] + m.respond [:say, m.channel, "foo#{args}"] end def error(m, args) @@ -37,7 +37,7 @@ module Dinobot end def invalidresponse(m, args) - m.response << [:say, m.channel] + m.respond [:say, m.channel] end end end |