2015-04-16 08:58:22 +00:00
|
|
|
require 'pp'
|
|
|
|
|
2013-06-04 19:31:27 +00:00
|
|
|
include EventMachine::IRC::Commands
|
|
|
|
|
2015-04-16 08:40:52 +00:00
|
|
|
Client.register_trigger("PRIVMSG", "pretty_print") { |msg|
|
2015-04-16 08:58:22 +00:00
|
|
|
puts Time.now.to_s + msg.pretty_inspect
|
2013-06-04 19:31:27 +00:00
|
|
|
}
|