Last modified: 2014-10-07 07:45:45 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/312/ Reported by: avicennasis Created on: 2012-06-18 05:17:33 Subject: -enable arg to all scripts Original description: It would be handy to have an optional -enable "Checkpage" option built into scripts by default - so that a bot can deactivated by non-admins, if so needed.
What is the behaviour you would want/expect when 'Checkpage' is enabled?
A simple boolean value - if the arg is used, read checkpage - if 'true', continue script - if false, stop and exit script. I know some of the scripts have a "enablePage" - but a lot of them don't.
That doesn't tell me anything about what it should do. What is 'checkpage'? What should the bot do with it? When? What should it do in which case?
Exactly what the '-enable:' parameter does in lonelypages.py - http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia/lonelypages.py
This behavior is not the same as blocking a bot by admins; it only prohibits the next start of the bot. So I am not sure if this is what you want to.
True, it is different then an admin stopping the bot via blocking, which of course would be instant. I was thinking more of implementations on cron - allowing any user to 'disable' the next run of a cronjob'd script until the BotOp is online/able to address a problem that may have arisen. \(Alternatively, one could rewrite the -enable option to be checked every 10-25 pages, and so stop a bot from running even in 'mid-script'.\)
reflinks.py also implements a similar system ('stopPage'). It checks the latest revid (not the content), but every 20 edits.
Change 137980 had a related patch set uploaded by Ricordisamoa: PROOF-OF-CONCEPT: check own talk, a custom page, and notifications https://gerrit.wikimedia.org/r/137980
no code to review yet