forked from mjsteger/steggybot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsteggybot.rb
31 lines (29 loc) · 902 Bytes
/
steggybot.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'cinch'
Dir.glob("plugins/*.rb").each {|x| require_relative x}
Dir.glob("plugins/*/*.rb").each {|x| require_relative x}
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.freenode.net"
c.nick = "steggybot"
c.channels = ["#csua", "#csuatest", "##csua"]
c.plugins.plugins = [Google, UrbanDictionary, TitleGrabber, Quotes, Pokedex, Youtube,
YaBish, Roll, WhoAreThesePeople, PlusPlus, Pazudora]
c.plugins.plugins << Help
c.plugins.options[Quotes] = {
:quotes_file => "db/quotes.yml"
}
c.plugins.options[Pokedex] = {
:pokedex => "db/pokedex.json"
}
c.plugins.options[WhoAreThesePeople] = {
:identities => "db/identities.yml"
}
c.plugins.options[PlusPlus] = {
:plusplus => "db/plusplus.yml"
}
c.plugins.options[Pazudora] = {
:pddata => "db/pddata.yml"
}
end
end
bot.start