Skip to content

Instantly share code, notes, and snippets.

@BlueCannonBall
Last active July 13, 2020 02:28
Show Gist options
  • Save BlueCannonBall/0352c41528ce5564bd5913df7c2a9e2e to your computer and use it in GitHub Desktop.
Save BlueCannonBall/0352c41528ce5564bd5913df7c2a9e2e to your computer and use it in GitHub Desktop.
Gunna.io Lagbots
// This code is under the CC0 Creative Commons license. Read more at https://creativecommons.org/share-your-work/public-domain/cc0/
// Execute the code below in a browser javascript console to start spawning infinite lagbots in gunna.io
setInterval(() => {let lagws = new WebSocket("ws://167.99.174.211:8080"); lagws.onopen = function () {lagws.send(JSON.stringify({ name: "Lagbot" })); var lft = Math.random() >= 0.5; var upp = Math.random() >= 0.5; var rgt = Math.random() >= 0.5; var dwn = Math.random() >= 0.5; dat = {
x: (lft ? -1 : 0) + (rgt ? 1 : 0),
y: (upp ? -1 : 0) + (dwn ? 1 : 0),
time: (new Date()).getTime()
};
lagws.send(JSON.stringify(dat));}}, 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment