Advertisement
Guest User

Untitled

a guest
Apr 12th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. require 'rubygems'
  2. require 'isaac'
  3.  
  4. config do |c|
  5. c.username = "logbotpop"
  6. c.realname = "sfpt logging bot"
  7. c.nick = "logbotpop"
  8. c.server = "irc.efnet.org"
  9. c.port = 6667
  10. end
  11.  
  12. on :connect do
  13. join "#cemetech"
  14. end
  15.  
  16. on :channel, /.*/ do
  17. open("#{channel}.log", "a") do |log|
  18. log.puts "#{nick}: #{message}"
  19. end
  20.  
  21. puts "#{channel}: #{nick}: #{message}"
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement