View difference between Paste ID: aNqLRD8c and uMdXXJyV
SHOW: | | - or go back to the newest paste.
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