diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 18:08:07 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 18:08:07 -0700 |
commit | 03a29033194c7740ea4717cbfe2fbaf32325611d (patch) | |
tree | c01b7c817474906edf46b2671601e1c6dc65a248 /test.rb | |
parent | 77a8d4daa59b668473794d083e3bbc89eab94648 (diff) | |
download | dinobot-03a29033194c7740ea4717cbfe2fbaf32325611d.tar.gz dinobot-03a29033194c7740ea4717cbfe2fbaf32325611d.tar.xz |
Clean up command code.
Diffstat (limited to 'test.rb')
-rw-r--r-- | test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |