Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created April 12, 2016 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/23c1171696e0499c69ba3fb8e7b80be7 to your computer and use it in GitHub Desktop.
Save anonymous/23c1171696e0499c69ba3fb8e7b80be7 to your computer and use it in GitHub Desktop.
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