aboutsummaryrefslogtreecommitdiff
path: root/echo.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 02:06:53 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-14 02:06:53 -0700
commitf35ae6761d9656ec51bd9176a83320c5dcf44278 (patch)
treec0ae3eccc5dacbcddc91c0152ff5e99783299e7a /echo.rb
parent3446d5f2ec4263fc097d4d5c7996d88daf220693 (diff)
downloaddinobot-f35ae6761d9656ec51bd9176a83320c5dcf44278.tar.gz
dinobot-f35ae6761d9656ec51bd9176a83320c5dcf44278.tar.xz
Add support for modules.
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