This repository was archived by the owner on Dec 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.rb
More file actions
executable file
·42 lines (36 loc) · 1.36 KB
/
bot.rb
File metadata and controls
executable file
·42 lines (36 loc) · 1.36 KB
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
32
33
34
35
36
37
38
39
40
41
42
require 'cinch'
require 'require_all'
require_relative 'utils/utils.rb'
require_all 'plugins'
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.synirc.net"
c.channels = ["#capasb", "#calcasb"]
c.nick = ENV["botircnick"]
c.password = ENV["botircpass"]
c.plugins.prefix = //
c.plugins.plugins = [SpeedPlugin, ASBMovePlugin, ASBStatsPlugin,
ASBilityPlugin, ASBItemPlugin, ASBNaturePlugin,
ASBTypePlugin, RollPlugin, BlamePlugin, NoPlugin,
QuotesPlugin, ProfilePlugin, ComboPlugin, HelpPlugin,
DCCheckPlugin, YesPlugin, ShufflePlugin,
UpdateNDAPlugin, CalcPlugin, PickPlugin, RecapPlugin,
YololPlugin, InvitePlugin, ASBRankPlugin
]
c.plugins.options[QuotesPlugin] = {:quotes_address => ENV["quotes_url"]}
# c.plugins.options[MemoPlugin] = {:memos_address => ENV["memos_url"]}
c.plugins.options[ProfilePlugin] = {:smogon_username => ENV["smogon_username"],
:smogon_password => ENV["smogon_password"]}
c.plugins.options[RecapPlugin] = {
:mode => :max_messages,
:max_messages => 25,
:time_format => "%H:%M",
:channels => c.channels,
:cooldown => 60
}
end
on :connect do |m|
BotUtils.updatenda
end
end
bot.start