How it works
"@game" in WhatsApp ─► bot ─► opens the game in a browser ─► clicks through the menus
▲ │
└──── replies with the invite link ◄── checks the room ◄┘
- Clicking without buttons. The game is one WebGL — The browser's interface to the graphics card, used to draw 2D and 3D scenes fast. picture. I recorded one run through the menus. With each click, the bot saved a small picture of what was under the mouse. Before it clicks again, it waits until the screen shows that picture. A slow load only delays a click.
- The exact link. The game copies its invite link with its own function,
window.copyText. The bot listens to that function, so it gets the link exactly. No screen reading. - Checking its own work. The link hides the room settings inside it — the weapons, the round length, team mode. The bot reads them back and checks them before posting. A wrong click fails the try instead of reaching the group.
What went wrong
- Taking a screenshot of only part of the page made the browser redraw, and the game then missed the next click. Now the bot always takes the full screen and cuts it in code.
- On a machine without a graphics card, the game checks the mouse only a few times per second. A click only counts if the mouse is on the button both when it presses and when it lets go. So the bot now waits 400 ms after each move.