Advertisement
flypip

flyfacebot

May 30th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --------------------------------------------------
  2. --Flybot pour iChat AFK creer par Flypip.--
  3. --------------------------------------------------
  4.  
  5. on cMsg(msg, theBuddy)
  6.     tell application "iChat"
  7.         if status is away then
  8.             send msg to theBuddy
  9.         end if
  10.     end tell
  11. end cMsg
  12.  
  13. using terms from application "iChat"
  14.    
  15.     on received text invitation theText from theBuddy for theChat
  16.         accept theChat
  17.         set nom to full name of theBuddy
  18.         cMsg("Flybot: Bonjours " & nom & ", Je suis actuellement \"indisponible\", mais vos messages seront pris en compte.  Flypip ", theBuddy)
  19.     end received text invitation
  20.    
  21.     on message received theMessage from theBuddy for theChat
  22.         cMsg("Flybot: Indisponible. flypip", theBuddy)
  23.     end message received
  24.    
  25. end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement