Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- property rateTrigger : "!RATE"
- using terms from application "Colloquy"
- on process incoming chat message theMessage from theUser in theView
- set theText to HTML of theMessage as string
- set n to random number from 1 to 10 as string
- set u to theUser's name as string
- if (get word 1 of theText) is rateTrigger then
- tell theView
- send message "" & u & ", I rate that " & n & " out of 10."
- end tell
- end if
- end process incoming chat message
- end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement