aboutsummaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 18:08:07 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 18:08:07 -0700
commit03a29033194c7740ea4717cbfe2fbaf32325611d (patch)
treec01b7c817474906edf46b2671601e1c6dc65a248 /test.rb
parent77a8d4daa59b668473794d083e3bbc89eab94648 (diff)
downloaddinobot-03a29033194c7740ea4717cbfe2fbaf32325611d.tar.gz
dinobot-03a29033194c7740ea4717cbfe2fbaf32325611d.tar.xz
Clean up command code.
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.rb b/test.rb
index 665c21e..735af2c 100644
--- a/test.rb
+++ b/test.rb
@@ -5,7 +5,7 @@ module Dinobot
def initialize
super
- @commands << :echo << :error << :timeout << :x3 << :wrongreturn
+ @commands << :echo << :error << :timeout << :x3 << :wrongreturn << :fooify
end
def echo(user, channel, argument)
@@ -27,5 +27,9 @@ module Dinobot
def wrongreturn(user, channel, argument)
0
end
+
+ def fooify(user, channel, argument)
+ [[:say, channel, 'foo' + argument]]
+ end
end
end