Wikipedia:Bot activity monitor/Configurations/task/doc

This is an old revision of this page, as edited by SD0001 (talk | contribs) at 09:09, 31 March 2021 (clarify summary_regex). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Bot task configuration parameters:

  • bot: Name of the bot account
  • task: Name of the bot task, used in the alerts and status table.
  • action: (Default: "edit") Type of action the bot does: "edit" or any log action such as "delete", "move", "patrol", etc. You also specify a sub-action such as "delete/revision" or "block/reblock". The value given must be acceptable to either the letype or leaction parameter of mw:API:Logevents (unless the value is "edit").
  • namespace: Namespace(s) where the bot edits. Specify the namespace numbers (see Help:Namespaces) separated by commas if multiple.
    • Common namespace numbers: 0 (article), 2 (user), 4 (Wikipedia), 6 (file), 10 (template), 14 (category), 118 (draft). For respective talk namespaces, add 1 to those numbers.
  • title: Title of the page where the bot edits. If it's not a single page, use |title_regex= instead.
  • title_regex: Regex matching page titles where the bot edits.
    • This should entirely match the full page title. Use .* for "any characters".
  • summary: Edit summary (or log summary) used. If this is not fixed, use |summary_regex= instead.
    • The exact edit summary. If the edit summary includes templates, please use summary_regex instead to prevent the templates from rendering on this page.
  • summary_regex: Regex matching edit summary (or log summary) used by the bot.
    • This regex must match the task's edit summary in entirety (not partially). You can use .*</code in the starting and end for partial matching. This choice may be revisited in the future.
    • If it includes templates, use \{ instead of { to prevent templates from rendering on this page.
  • min_edits: (Default: 1) Minimum number of edits or log actions required in the given |duration=.
  • duration: (Default: 3 days) The passed time window in which to look for edits.
    • For example if min_edits=4 and duration=5 days, we expect to find at least 4 edits in the past 5 days.