Skip to content

Instantly share code, notes, and snippets.

@Arm1stice
Created April 14, 2014 05:32
Show Gist options
  • Save Arm1stice/10618742 to your computer and use it in GitHub Desktop.
Save Arm1stice/10618742 to your computer and use it in GitHub Desktop.
javascript:masstip = 5; socket.emit("chat", {message: "/me is masstipping " + masstip + " doges! Users: " + users[currentRoom][1] + ' ' + users[currentRoom][2] + ' ' + users[currentRoom][3] + ' ' + users[currentRoom][4] + ' and ' + users[currentRoom][5] + '!', room:currentRoom, color: color});for(var i=0;i<5;i++){socket.emit("tip",{user:users[currentRoom][i],room:currentRoom,tip:masstip,message:"Mass tip from "+username});}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment