From f35ae6761d9656ec51bd9176a83320c5dcf44278 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 14 Apr 2014 02:06:53 -0700 Subject: Add support for modules. --- echo.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 echo.rb (limited to 'echo.rb') 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 -- cgit v1.2.3-70-g09d2