summaryrefslogtreecommitdiff
blob: 46d3d0570e0c95b16289da0e42e80384d4664c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env ruby

require 'cinch'
require_relative 'plugins/message'
require_relative 'config'

bot = Cinch::Bot.new do
	loggers.level = :warn
	configure do |c|
		c.server = IRC_SERVER
		c.channels = [IRC_CHANNEL]
		c.nick = IRC_NICK
		c.user = IRC_USER
		c.password = IRC_PASS
		c.realname = IRC_RELNAME
		c.plugins.plugins = [WikiPlugin]
	end
end

Thread.new { Listener.new(bot).start }
bot.start