summaryrefslogtreecommitdiff
blob: e697fed5b849ab8b7cd2af36351d07b34d3f7a11 (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/wiki'
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