Guest User

Untitled

a guest
Mar 12th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set r to (random number from 1 to 5)
  2. property watchedChatRoomz : {"tfwiki"}
  3. using terms from application "Colloquy-1"
  4.     on member joined whoArrived in whichChatRoom
  5.         if watchedChatRoomz contains (whichChatRooms's name) then
  6.             set n to (whoArrived's name)
  7.             if r = 1 then
  8.                 tell whichChatRoom
  9.                     send message "Welcome back, " & n & ", great to see you."
  10.                     if r = 2 then
  11.                         tell whichChatRoom
  12.                             send message "Hey there, " & n & ", how are you?"
  13.                             if r = 3 then
  14.                                 tell whichChatRoom
  15.                                     send message "Hiya, " & n & "how ya doin'?"
  16.                                     if r = 4 then
  17.                                         tell whichChatRoom
  18.                                             send message "Watsup" & n & "?"
  19.                                             if r = 5 then
  20.                                                 tell whichChatRoom
  21.                                                     send message "Ohey" & n & "."
  22.                                                 end tell
  23.                                             end if
  24.                                         end tell
  25.                                     end if
  26.                                 end tell
  27.                             end if
  28.                         end tell
  29.                     end if
  30.                 end tell
  31.             end if
  32.         end if
  33.     end member joined
  34. end using terms from
Add Comment
Please, Sign In to add comment