summaryrefslogtreecommitdiffstats
path: root/bot.rb
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-01-01 19:03:27 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-01-01 19:03:27 +0100
commit09e925d6956cd7431a3466d8b659a7207e029617 (patch)
treea9f3d3db23a71365df8c9ff9e616b879de991928 /bot.rb
parent9d1555604557b7ca385869a6fcebaf4dc0665059 (diff)
downloadlain-09e925d6956cd7431a3466d8b659a7207e029617.tar
lain-09e925d6956cd7431a3466d8b659a7207e029617.zip
Add Fortune module
Diffstat (limited to 'bot.rb')
-rw-r--r--bot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot.rb b/bot.rb
index 80eb45e..6040029 100644
--- a/bot.rb
+++ b/bot.rb
@@ -17,9 +17,9 @@ module Lain
$stderr.puts 'Loading modules...'
- Config::Modules.each { |mod|
+ Config::Modules.each { |mod, cfg|
require_relative "modules/#{mod}"
- @modules[mod] = Modules.const_get(mod).new self
+ @modules[mod] = Modules.const_get(mod).new(self, cfg)
}
$stderr.puts 'Connecting...'