diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 05:12:50 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-14 05:12:50 -0700 |
commit | 376b34ee7249525b0adb49e8c8043ab2fa0d8347 (patch) | |
tree | ec556bdaf918fee658675d701b75dc02c385117a /test.rb | |
parent | 282b36e2690aea415244c81eadf093c41f752194 (diff) | |
download | dinobot-376b34ee7249525b0adb49e8c8043ab2fa0d8347.tar.gz dinobot-376b34ee7249525b0adb49e8c8043ab2fa0d8347.tar.xz |
Rename Echo to Test and add error testing.
Diffstat (limited to 'test.rb')
-rw-r--r-- | test.rb | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +require_relative 'module' + +module Dinobot + class Test < Module + def initialize + super + + @commands << :echo << :error + end + + def echo(user, channel, argument) + [[:say, channel, argument]] + end + + def error(user, channel, argument) + x + end + end +end |