Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def raw(cmd, msg = nil)
- if msg == nil
- $con.puts("#{cmd} \r\n")
- puts "[#{Time.now.strftime("%l:%M %p")}] --> #{cmd}"
- else
- $con.puts("#{cmd} #{msg} \r\n")
- puts "[#{Time.now.strftime("%l:%M %p")}] --> #{cmd} #{msg}"
- end
- end
- def act(type,message)
- raw('PRIVMSG', "#{type} :#{1.chr}ACTION #{message}#{1.chr}")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement