aboutsummaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb44
1 files changed, 0 insertions, 44 deletions
diff --git a/test.rb b/test.rb
deleted file mode 100644
index a54683e..0000000
--- a/test.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-require_relative 'module'
-
-module Dinobot
- class Test < Module
- def initialize(bot)
- super
-
- @commands << :echo << :ping << :x3 << :fooify
- @commands << :error << :timeout << :wrongreturn << :invalidmethods
- end
-
- def echo(user, channel, argument)
- [[:say, channel, argument]]
- end
-
- def ping(user, channel, argument)
- [[:say, channel, 'pong']]
- end
-
- def x3(user, channel, argument)
- [[:say, channel, argument]] * 3
- end
-
- def fooify(user, channel, argument)
- [[:say, channel, 'foo' + argument]]
- end
-
- def error(user, channel, argument)
- x
- end
-
- def timeout(user, channel, argument)
- sleep 60
- end
-
- def wrongreturn(user, channel, argument)
- 0
- end
-
- def invalidmethods(user, channel, argument)
- [[:say, channel]]
- end
- end
-end