Operator: Tigraan (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)
Time filed: 19:19, Sunday, March 25, 2018 (UTC)
Automatic, Supervised, or Manual: Automatic
Programming language(s): Python 3
Source code available: [1]
Function overview: Notifies posters when a Teahouse thread gets archived.
Links to relevant discussions (where appropriate): See Wikipedia:Bots/Requests_for_approval/Tigraan-testbot and the links from there
Edit period(s): Daily
Estimated number of pages affected: ~20/day
Namespace(s): User talk pages
Exclusion compliant (Yes/No): Yes (PWB)
Function details: See previous BRFA (Wikipedia:Bots/Requests_for_approval/Tigraan-testbot). That is a bit of a procedural nomination, since that "new" bot has exactly the same functionality. We intended to add that functionality to User:HostBot (maintained by Jtmorgan) but we have not done so, and I also have plans/dreams to extend the functionality on other pages than the Teahouse (and it would not make much sense to perform the duties from a Teahouse-dedicated bot).
The previous test run was fine but I have done a significant refactoring of the code (tested, of course, but you never know what can happen). Furthermore, it would be my first bot on Toolforge, and I am clearly not above a screwup when submitting the jobs on the grid and running the script from a different environment. So I would request a trial run similar to last time, even if the functionality has not changed.
add_text
). post_text = '=={sn}==\n{tta}'.format(sn=sn, tta=text)
# Caution: will not ask for confirmation!
add_text.add_text(page, post_text, summary=es,
always=True, up=False, create=True)
page.save(text=text, summary=sn, section='new', minor=False, botflag=False)
. (example edit) This will avoid making other changes to the user's talk page; however, you will lose the ability for the edit summary to be different from the section name. — JJMC89 (T·C) 23:28, 22 April 2018 (UTC)Reply[reply]botflag
to True, though.). After that plus a bit of unimportant code tweaking, a dry run showed that today's batch is 14 notifs, so I could run it without going over trial limit (34+14<50). Results here. Manual inspection revealed no discrepancies. The worse I could see is that a human editor would probably have refrained notifying for that archival (not really a question, and veteran editor), but there was no simple way to avoid that (well, except avoiding notifications for users with more than X edits or the like, but consensus was somewhat against such a scheme when we designed the bot a year or so ago). TigraanClick here to contact me 19:23, 23 April 2018 (UTC)Reply[reply]
scripts.add_text
, but I used JJMC89's suggestion (just below "trial complete", above) of page.save(...section='new'...)
(see commit) to fix it before the last run. TigraanClick here to contact me 10:08, 21 May 2018 (UTC)Reply[reply]