Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'isaac'
- config do |c|
- c.username = "logbotpop"
- c.realname = "sfpt logging bot"
- c.nick = "logbotpop"
- c.server = "irc.efnet.org"
- c.port = 6667
- end
- on :connect do
- join "#cemetech"
- end
- on :channel, /.*/ do
- open("#{channel}.log", "a") do |log|
- log.puts "#{nick}: #{message}"
- end
- puts "#{channel}: #{nick}: #{message}"
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement