Shawarma Spin
-
if anybody can figure out how to kill the sound from JS, let me know... muting the tab is kind of a pain, especially once the tab bar is completely full of 0-width tabs...
soundManager.setVolume(0)
This is weird:
↠ soundManager.stop.toSource()
"(function (){})"
↠ soundManager.stopAll.toSource()
"(function (){})"
This on the other hand is Discourse:
Fixed by copying the resulting Unicode characters to raw post.
-
Looks like we broke it.
Although, STI had something like 450 spinners going. Maybe they broke it.
This is weird:
↠ soundManager.stop.toSource()
"(function (){})"
↠ soundManager.stopAll.toSource()
"(function (){})"That's deliberate.
-
Boo! You should avoid work!
-
-
I am, hence why I'm here ;)
-
Although, STI had something like 450 spinners going. Maybe they broke it.
hmm... well that is interesting isn't it?
-
well... that was fun but i'm retiring my bots....
here's the current code i was using if someone wants to take over:
'use strict'; const io = require('socket.io-client'); const mooks = 250; function worker(i) { console.log(`worker ${i} started`); let sock = io.connect('http://ws.shawarmaspin.com/', { 'force new connection': true }); sock.emit('set_team', 'WTF'); sock.emit('set_initials', `${(1000 + i + '').substring(1)}`); sock.on('score', (data) => { console.log(`Worker ${i} score: ${data.score_seconds / 60}`); }); sock.emit('message.team', `BOT ${process.pid}:${i} Connected`); } for (let i = 0; i < mooks; i += 1) { worker(i); }
-
I'm pretty sure I killed the server by running this in a few tabs:
for (var i = 0; i < 100; ++ i) { setTimeout((function (a) { var sock = io.connect('http://ws.shawarmaspin.com/', {'force new connection': true, timeout: 10000}); sock.emit('set_team', 'WTF'); sock.emit('set_initials', ('___' + a).slice(-3)); }).bind(0, i), 500 * i); }
There were already 700+ SPM in the top 2 rooms combined, so I don't know why a couple hundred more would've killed it.
-
Each time I read Shawarma I go like - it's spelled Shoarma in .nl and the other spelling just looks weird.
Microaggression to pronounce it wrong.
Microaggression to spell it wrong so you pronounce it right.
-
We're currently in 5th place... let's get onto the leaderboard, yes?
-
But the children!
-
Is someone else spinning? I'm pretty sure that I'm not running 500 bots all by myself... it tends to start giving connection errors around 300...
-
For those interested, here's a console logger that will display the top 10 teams plus any incoming chat messages.
var sock = io.connect('http://ws.shawarmaspin.com/', {'force new connection': true, timeout: 10000} ); sock.emit('set_team', 'WTF'); sock.emit('set_initials', 'UNK'); sock.on('team_high_scores', function (data) { if (data) { var team_scores = []; for (var i = 0; i < data.length; i++) { team_scores.push((" #" + (i + 1)).slice(-3) + " " + data[i].team + (" " + (data[i].score_seconds / 60).toFixed(0)).slice(-9) + (" " + data[i].spm).slice(-6)); } console.info(team_scores.join("\n")); } }); sock.on('message.global', function (msg) { if (msg) console.log(msg.from.initials + (msg.from.team ? " (" + msg.from.team + ")" : "") + ": " + msg.text); }); sock.on('message.team', function (msg) { if (msg) console.log("[" + msg.from.team + "] " + msg.from.initials + ": " + msg.text); });
Here's the current team hiscores:
-
not bad for having only been a team a couple of days.....
-
We have something like 248 days worth of spins accumulated already (1 spin = 1 minute). I've been running 300-400 bots pretty much constantly, so...
I posted my bot code yesterday, basically it's similar to yours but it runs in the browser console.
-
You're running 300-400 tabs like that?
-
Hell no, I'm running the code I posted yesterday in a few tabs (2 in Firefox and 3 in Chrome actually).
Too many (per tab or overall) and it tends to start dropping connections, and I didn't bother with any way of checking on them after they're started to see if they're still working, so it's hard to say how many bots are actually connected and running.
The server's been updated, though... instead of sending the whole list of players, it only sends the top 50 (sorted by score). And it shows the number of spinners now, where it didn't before.
-
I think someone broke it.
-
-
We're up to 519 spinners. Getting close to BUS.
-
I think someone broke it.
Why?
possibly me?
How?
We're up to 519 spinners. Getting close to BUS.
It's back down to 503.
If you run that script in a tab, it should probably go without saying you have to leave the tab open to let them run, right?
-
It's back down to 503.
I wonder if that's transient spinners or timeouts that are losing connections or what?
If you run that script in a tab, it should probably go without saying you have to leave the tab open to let them run, right?
One would think.
-
It was solid at 500, then gradually started rising, hit a max of 523, and then dropped back down again to 502. Now it looks like someone just started 10 more to bring it to 512.
edit: actually it was solid at 450, then I started 50 more in a new tab in Chrome, but I stopped there because I didn't want to press my luck too far.
-
Oops... Firefox crashed. Apparently it was running 192 bots, because the number immediately dropped from 525 to 333... getting them back online now...
-
What the hell. They just keep dropping off now. Yet DB9 doesn't seem to be affected...
-
Did they catch onto you guys?
-
Dunno, but DB9's bots aren't dying...
-
Can somebody else run the code
for (var i = 0; i < 100; ++ i) { setTimeout((function (a) { var sock = io.connect('http://ws.shawarmaspin.com/' , {'force new connection': true}); sock.emit('set_team', 'WTF'); sock.emit('set_initials', ('___' + a).slice(-3)); }).bind(0, i), 1000 * i); }
and verify whether or not the bots you create actually stick (number of spinners increases and stays)
I can't get more than about 50 all of a sudden and I have no idea why.
-
and I have no idea why.
I've been running 300-400 bots pretty much constantly, so...
I'm pretty sure I killed the server
Post is not empty.
-
If I killed the server again I’d expect to see DB9’s spinners fall off as
well, but I’m not seeing that happen.
-
I was hinting more counter-DOS measures than killing the server :)
-
I was hinting more counter-DOS measures than killing the server :)
yeah. looks like the bot fun is over.....
-
I'd still also expect to see DB9's spinners fall off.
Although it may be they're running individual spinners in tabs, but still... can it tell the difference between 300 of my bots and someone running 300 tabs?
-
can it tell the difference between 300 of my bots and someone running 300 tabs?
IP address
-
A person running 300 open tabs on one machine would have the same IP address also.
-
right, this is true. I imagine there are other things it uses for anti-cheat
-
I get a ton of connection reset and empty response errors in the console when I run your bot.
-
Could try lowering it from 100 to 50. I get those too, but usually only when I'm running a lot of bots.
-
I will give it a go tomorrow.
-
I see this in the chat:
R12 (#DES): Who are they? BRN (#DES): WTF == Thedailywtf ASH (#DES): Anyone who would be trying to shush a charity has an interesting mindset. FOX (#DB9): Botters ASH (#DES): Anyone who would /cheat/ to shush a charity, then.
Is this some kind of charity thing going on?
-
Is this some kind of charity thing going on?
Apparently...
And the charity in question:
-
That's all nearly as vague as the chat log. I didn't see anything obvious there about shawarma spin and any sort of contest or whatever.
Better go fire up some more bots.
-
That's funny, because they're totally cheating too...
Anyway, I don't see anyplace on the site that says users are only supposed to run 1 spinner per user, so...
-
Anyway, I don't see anyplace on the site that says users are only supposed to run 1 spinner per user, so...
Well, I can't even find anything on the desert bus site about it. Though I guess that explains @JazzyJosh's cryptic remark about "the children."
-
Apparently someone linked it in chat one point and people just started getting DB9 DES ERT and BUS teams together.
I assume people were running multiple tabs, but with the number of active people in chat, I assume a good number of actual people are spinning.
-
I lurked in the DB9 room for a while yesterday to eavesdrop on their team messages, and heard someone talking about 300 tabs in Chrome.
-
I had a couple of hundred running using the Chrome Developer console then suddenly they all got 400 errors and even the session running in the tab lost connection.
-
It didn't seem to like me running 3-4 tabs let alone any more. But in support of the cause I'll let it run on my laptop for a bit without sound.
-
I had it running 100 in a single tab for ages, it was when I went for 2/3 tabs with 100 each that it started going wrong.