diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 16:24:40 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 16:24:40 -0700 |
commit | 81344c57f7ccba7bc1e4ef25c24f9ad832c64372 (patch) | |
tree | a3067627efaf74987f30f732e9807c9d19e4bf1e /test.rb | |
parent | 0fee37a63b588d84b4d91e5ad5074ffb71f698a4 (diff) | |
download | dinobot-81344c57f7ccba7bc1e4ef25c24f9ad832c64372.tar.gz dinobot-81344c57f7ccba7bc1e4ef25c24f9ad832c64372.tar.xz |
Allow piping of commands (needs cleanup).
Diffstat (limited to 'test.rb')
-rw-r--r-- | test.rb | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -5,7 +5,7 @@ module Dinobot def initialize super - @commands << :echo << :error << :timeout + @commands << :echo << :error << :timeout << :x3 << :wrongreturn end def echo(user, channel, argument) @@ -19,5 +19,13 @@ module Dinobot def timeout(user, channel, argument) sleep 60 end + + def x3(user, channel, argument) + [[:say, channel, argument]] * 3 + end + + def wrongreturn(user, channel, argument) + 0 + end end end |