Forum:Help with an auto-reverting bot?
As some of you may know, we've had a proxy-abusing vandal hitting the site lately. In combating his vandalism I figured I'd enlist the services of SckrTrckrBot, a bot created by HerrDoktor that automatically reverts the edits of a given user. You can import the bot's uncyclopedia.js into your own and automatically revert edits- except that it doesn't work! When I tried it out, I got the prompt to enter the username and delay time, and it opened a window to check that user's contributions... but then it tried to do something funky that returned a 404, rather than actually revert anything. Sometimes it opened multiple browser windows when it's only supposed to open one, but I think it only did this when the connection timed out (this was during a period of this infamous Wikia lag).
I don't know anything about javascript, so I'm hoping that someone who does can take a look at SckrTrckrBot's .js and fix whatever it is that causes the bot to not function as it should. In the event that nobody here can do so, I'm thinking about asking Wikipedia how it can be done. I imagine they have plenty of such tools over there to combat vandalism. Anyway, instructions for the bot and the code to import its .js are on its userpage, so please have a look. This would be a brilliant tool for countervandalism. --Andorin Kato 07:50, August 9, 2010 (UTC)
- Cool stuff, but alas I know not of this kind of code. I hope you get it working as that would be a great counter measure. I've been meaning to learn more advanced code, but I really haven't had a need to yet. -- 04:10 EST 9 Aug, 2010
- Ok, to make it easier can you tell us which page it was trying to access that gave a 404? -- rhythmic Ape (behead) (Riot Porn) 11:58, August 9, 2010 (UTC)
- If you're on IRC later ping me and I'll try playing with it a bit. There's nothing that immediately strikes me as being wrong in the code. -- rhythmic Ape (behead) (Riot Porn) 12:11, August 9, 2010 (UTC)
- Here's the URL that returns a 404:
http://uncyclopedia.wikia.com/&action=edit&undo%3Ca%20href=
--Andorin Kato 19:32, August 9, 2010 (UTC)- That looks malformed and therefore, probably completely broken -- Prof. Olipro KUN (W)Anchor Op Bur. (Harass) 19:35, August 9, 2010 (UTC)
- Not concatenating the strings properly. -- rhythmic Ape (behead) (Riot Porn) 20:14, August 9, 2010 (UTC)
- That looks malformed and therefore, probably completely broken -- Prof. Olipro KUN (W)Anchor Op Bur. (Harass) 19:35, August 9, 2010 (UTC)
- Here's the URL that returns a 404:
- If you're on IRC later ping me and I'll try playing with it a bit. There's nothing that immediately strikes me as being wrong in the code. -- rhythmic Ape (behead) (Riot Porn) 12:11, August 9, 2010 (UTC)
Progress
Olipro, Ape and I have made some progress with the bot in IRC. The aim is now to let any user with rollback permissions (this keeps it out of the hands of those snarky vandals) automatically use rollback to revert all of a given user's contributions that can be rolled back. Ape created User:GapeOnThursdays, which is a vandalism sock that lets us test the bot. Please don't revert Gape's edits if there's an ongoing test, and please don't ban the sock, admins. Anyway, the bot still needs work, though Olipro's done a lot so far (and I'll probably harass him again sometime about it). --Andorin Kato 22:09, August 9, 2010 (UTC)