diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-20 07:08:49 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2014-04-20 07:08:49 -0700 |
commit | d6c6160df2e1872e1a0be9dfb8773c174ba4bde2 (patch) | |
tree | 0ee45703a8c846ac5d6b0efec21741efb1b856e3 /module/module.rb | |
parent | c8ce5fa45fde0e2bd1b3e6f1a336d2853b242ff2 (diff) | |
download | dinobot-d6c6160df2e1872e1a0be9dfb8773c174ba4bde2.tar.gz dinobot-d6c6160df2e1872e1a0be9dfb8773c174ba4bde2.tar.xz |
Rename Module::Module to Module::Base.
Diffstat (limited to 'module/module.rb')
-rw-r--r-- | module/module.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/module/module.rb b/module/module.rb deleted file mode 100644 index 9d72b09..0000000 --- a/module/module.rb +++ /dev/null @@ -1,25 +0,0 @@ -module Dinobot - module Module - class Module - attr_accessor :commands - - def initialize(bot) - @bot = bot - - @commands = [:commands] - end - - def call(user, channel, message) - command, argument = message.split(' ', 3)[1..2] - - if @commands.map { |x| x.to_s }.include?(command) - send(command, user, channel, argument) - end - end - - def commands(user, channel, argument) - [[:say, channel, "Commands: #{@commands.sort.join(' ')}"]] - end - end - end -end |