aboutsummaryrefslogtreecommitdiff
path: root/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test.rb')
-rw-r--r--test.rb19
1 files changed, 19 insertions, 0 deletions
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