From 376b34ee7249525b0adb49e8c8043ab2fa0d8347 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 14 Apr 2014 05:12:50 -0700 Subject: Rename Echo to Test and add error testing. --- test.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test.rb (limited to 'test.rb') diff --git a/test.rb b/test.rb new file mode 100644 index 0000000..f2010a0 --- /dev/null +++ b/test.rb @@ -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 -- cgit v1.2.3-70-g09d2