Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. property helpTrigger : "!HELP"
  2. using terms from application "Colloquy"
  3.    
  4.     on process incoming chat message theMessage from theUser in theView
  5.         set theText to HTML of theMessage as string
  6.         if theText is equal to helpTrigger then
  7.             set n to theUser's name
  8.             set helpMessage1 to ("=-=-=-=-=-=-=-=-=-= USER COMMAND LIST =-=-=-=-=-=-=-=-=-=")
  9.             set helpNotice1 to ("NOTICE " & n & " :" & helpMessage1 & "")
  10.             send raw command helpNotice1 to connection of active panel of front window
  11.             set helpMessage2 to ("HELP INFO PREDICT RATE")
  12.             set helpNotice2 to ("NOTICE " & n & " :" & helpMessage2 & "")
  13.             send raw command helpNotice2 to connection of active panel of front window
  14.         end if
  15.     end process incoming chat message
  16. end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement