Advertisement
Guest User

rooobbyyy

a guest
Oct 12th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def raw(cmd, msg = nil)
  2.   if msg == nil
  3.     $con.puts("#{cmd} \r\n")
  4.     puts "[#{Time.now.strftime("%l:%M %p")}] --> #{cmd}"
  5.   else
  6.     $con.puts("#{cmd} #{msg} \r\n")
  7.     puts "[#{Time.now.strftime("%l:%M %p")}] --> #{cmd} #{msg}"
  8.   end
  9. end
  10. def act(type,message)
  11.   raw('PRIVMSG', "#{type} :#{1.chr}ACTION #{message}#{1.chr}")
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement