Advertisement
Guest User

Untitled

a guest
Jul 11th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. property testTrigger : "!TEST"
  2. using terms from application "Colloquy"
  3.     on process incoming chat message theMessage from theUser in theView
  4.         set theText to HTML of theMessage as string
  5.         if theText is equal to testTrigger then
  6.             set n to theUser's name
  7.             set testMessage1 to ("TESTING MESSAGE 1")
  8.             set testMessage to ("TESTING MESSAGE 2")
  9.             set testNotice1 to ("NOTICE " & n & " :" & testMessage1 & "")
  10.             set testNotice to ("NOTICE " & n & " :" & testMessage & "")
  11.             send raw command testNotice1 to the first connection
  12.             send raw command testNotice to the first connection
  13.         end if
  14.     end process incoming chat message
  15. end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement