aboutsummaryrefslogtreecommitdiff
path: root/module.rb
diff options
context:
space:
mode:
Diffstat (limited to 'module.rb')
-rw-r--r--module.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/module.rb b/module.rb
deleted file mode 100644
index 082fc83..0000000
--- a/module.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-module Dinobot
- 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