Wikipedia:Bots/Requests for approval/DannyS712 bot 68 - Wikipedia


Article Images
The following discussion is an archived debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA. The result of the discussion was  Approved.

Operator: DannyS712 (talk · contribs · SUL · edit count · logs · page moves · block log · rights log · ANI search)

Time filed: 22:45, Sunday, February 23, 2020 (UTC)

Automatic, Supervised, or Manual: automatic

Programming language(s): Javascript

Source code available: https://github.com/DannyS712/bot

Function overview: Allows users to schedule reminders for themselves in a userspace json page, and post those reminders to a user's talk page

Links to relevant discussions (where appropriate):

Edit period(s): Daily

Estimated number of pages affected: User talk pages of users that opt in

Exclusion compliant (Yes/No): No

Already has a bot flag (Yes/No): No

Function details:

I figured out a sane way to allow users to schedule reminders and have them processed. I haven't done any coding yet, but wanted to open this for discussion.

  • User, via script (to be written) adds an entry to User:Example/reminders.json with the day for the reminder, and the text to include
  • User page is in a tracking category or transcluded a specific template to track which users are using the service
  • Each day, bot retrieves all user pages in the category/with the template, converts "User:Example" with "User:Example/reminders.json", retrieves the json page, and parses to see if any reminders where scheduled for that day
  • If any were, post to "User talk:Example"

Reminders can only be scheduled by the owner (or an admin editing the owners json page, but why would anyone?)

  • User is responsible for removing old reminders from their /reminders.json page, but the bot only checks to see if there are reminders for "today" (UTC at noon) and so doesn't care if there are old ones left

Is there a specific reason for using .json? I know that these are (along with JS and CSS) the only pages that are protected in user-and-some-privileged-groups mode, but I wonder if there are other ways to accomplish this. I know there are tasks at Phabricator to create a feature, but I am not sure if programming that is better or worse than programming a bot for the meantime. Jo-Jo Eumerus (talk) 23:05, 23 February 2020 (UTC)[reply]

@Jo-Jo Eumerus: so that other people don't edit them, and to make it easier for the bot to parse DannyS712 (talk) 23:08, 23 February 2020 (UTC)[reply]

I see you didn't fill anything into the "Links to relevant discussion" section. A quick search turned up several pages, of which Wikipedia:Bots/Requests for approval/RemindMeBot seems the most comprehensive. As mentioned there, it might be more functional all around to tie this into Echo somehow, storing pending reminders in a properly indexed database table and so on. Anomie 14:20, 24 February 2020 (UTC)[reply]

@Anomie: sure, but phab:T156808 hasn't had any progress. If it is implemented I'll stop the bot DannyS712 (talk) 18:35, 25 February 2020 (UTC)[reply]

 Approved. Looks good to me. No sense in holding this up any longer. The condition on this approval is that if phab:T156808 and its front-end is ever implemented, as you have said before, you stop this bot as it would become redundant. As per usual, if amendments to - or clarifications regarding - this approval are needed, please start a discussion on the talk page and ping. --TheSandDoctor Talk 05:20, 27 May 2020 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. To request review of this BRFA, please start a new section at WT:BRFA.