Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. function Client() {
  2.   this.state = "loggedoff"
  3. }
  4.  
  5. //attempt to say something, will attempt login every time and keep you at as far as you have gotten
  6. Client.prototype.say = function(msg) {
  7.   switch(this.state) {
  8.     case "loggedoff":
  9.       this.queueLogin()
  10.     case "authenticated":
  11.       this.queueVoiceRequest()
  12.     case "voiced":
  13.       this.queueMessage(msg)
  14.       break
  15.     //banned etc.
  16.     default:
  17.       throw "not allowed"
  18.   }
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top