-
-
Save anonymous/23c1171696e0499c69ba3fb8e7b80be7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment