legoktm / harej-bots Goto Github PK
View Code? Open in Web Editor NEWBots formerly run by Harej, then by Chris G, and now me...
Bots formerly run by Harej, then by Chris G, and now me...
It's hitting Chris's dbapi.php.
stdweb is unmaintained
Details | |
---|---|
Status | unmaintained |
Package | stdweb |
Version | 0.4.20 |
URL | koute/stdweb#403 |
Date | 2020-05-04 |
The author of the stdweb
crate is unresponsive.
Maintained alternatives:
See advisory page for additional details.
Didn't hear back on talk page, so reposting (all details are below, with a proposed fix by Chris G—just needs to be tested)
https://en.wikipedia.org/wiki/User_talk:Legoktm/March_2017#GA_bot_doesn.27t_count_some_signatures
I recently figured out how to reproduce a long-standing issue with the GA bot in which some editors (including myself) do not receive bot notifs about the review or review counts next to their signatures on WP:GAN. The bot needs to see a "User:" link in the nominator's signature. Currently, signatures with only "User_talk:" links will not receive notifs/counts. Edits like this appear to fix it. Would you be able to tweak the signature detection in the code so that it works with all signatures? (I think it's potentially line 259.) If you're unavailable, is there someone else who can help? czar 20:20, 2 March 2017 (UTC)
It's been years since I've looked at that code. But from what you're describing I think this should do the trick:
<?php
// Line 255
public function setNominator ( $nominator ) {
$nominator = trim($nominator);
if (!empty($nominator)) {
$this->nominator = $nominator;
preg_match("/\[\[User([ _]talk)?:(.+?)\|.+?\]\]/",$nominator,$m);
if (!empty($m[2]))
$this->nominator_plain = trim(ucfirst(str_replace('_',' ',$m[2])));
}
}
--Chris 13:25, 3 March 2017 (UTC)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.