summaryrefslogtreecommitdiff
blob: cb500dbfa860adb76d3889b59d18bb661dad34d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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_REALNAME
		c.plugins.plugins = [MessagePlugin]
	end
end

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

# vim: ft=rb sts=2 ts=2: