From 03a29033194c7740ea4717cbfe2fbaf32325611d Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 14 Apr 2014 18:08:07 -0700 Subject: Clean up command code. --- test.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test.rb') diff --git a/test.rb b/test.rb index 665c21e..735af2c 100644 --- a/test.rb +++ b/test.rb @@ -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 -- cgit v1.2.3-70-g09d2