Last active
July 13, 2020 02:28
-
-
Save BlueCannonBall/0352c41528ce5564bd5913df7c2a9e2e to your computer and use it in GitHub Desktop.
Gunna.io Lagbots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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