blob: a28e083fd661cce17e7e10762c0eb135bf50104f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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.encoding = 'utf-8'
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:
|