diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-15 07:56:44 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-15 07:56:44 -0700 |
commit | 6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941 (patch) | |
tree | 92f34b33eac5f55f06915d203d14edc680958f09 /test.rb | |
parent | 9f44e1d9372e4168def6e90f6b49d61c74f0045d (diff) | |
download | dinobot-6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941.tar.gz dinobot-6d4f0b1a3c82a983edd7ccba6dee5a7c79a8c941.tar.xz |
Add method list validation.
Diffstat (limited to 'test.rb')
-rw-r--r-- | test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6,7 +6,7 @@ module Dinobot super @commands << :echo << :ping << :x3 << :fooify - @commands << :error << :timeout << :wrongreturn + @commands << :error << :timeout << :wrongreturn << :invalidmethods end def echo(user, channel, argument) @@ -36,5 +36,9 @@ module Dinobot def wrongreturn(user, channel, argument) 0 end + + def invalidmethods(user, channel, argument) + [[:say, channel]] + end end end |