Guest User

Untitled

a guest
Sep 9th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.61 KB | None | 0 0
  1. let instance = new Instance()
  2.  
  3. instance |> loginName "Gary"
  4.          >. loginOwner 123456
  5.          >. loginPass "herpderp"
  6.          >. login
  7.          |> function
  8.             | Failure(result, _) -> printfn "Login failed (Reason %s)." (result.ToString ())
  9.             | Success(_) -> printfn "Login successful."
  10.  
  11. instance |> on avatarAdd
  12.          |> Event.map getAvatarInfo
  13.          |> Event.add (fun avatar -> instance.Whisper(avatar.Session, sprintf "Greetings, %s!" avatar.Name) |> ignore)
  14.  
  15. instance.Enter("zzzzzzzz") |> ignore
  16. instance.StateChange() |> ignore
  17.  
  18. while true do
  19.     Utility.Wait(100) |> ignore
Add Comment
Please, Sign In to add comment