aboutsummaryrefslogtreecommitdiff
path: root/echo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'echo.rb')
-rw-r--r--echo.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/echo.rb b/echo.rb
new file mode 100644
index 0000000..4911ad0
--- /dev/null
+++ b/echo.rb
@@ -0,0 +1,15 @@
+require_relative 'module'
+
+module Dinobot
+ class Echo < Module
+ def initialize
+ super
+
+ @commands << :echo
+ end
+
+ def echo(user, channel, message)
+ [[:say, channel, message]]
+ end
+ end
+end