User:MusikBot II/AWBListMan
AWBListMan
Maintains the AWB CheckPage and counts the number of users and bots who have access. Inactive users (in terms of editing in general, and not exclusive to AWB), indefinitely blocked users and newly appointed administrators are automatically removed from the CheckPage. The duration after which these events occur are defined in the configuration (see documentation below).
To disable, set /Run to anything other than true
(link)
Errors are logged at /Error log
Tasks
- Alphabetize the list and remove any duplicates
- Make all formatting consistent (whitespace, newlines, etc.)
- Update to reflect any user renames
- Remove admins from the list since they automatically have access
- Remove users who have been indefinitely blocked for a specified amount of time (see the config)
- Remove inactive users. The bot first notifies the user that their access may be revoked, and waits a week before actually removing them.
- Generate a report of users who have been automatically removed
- Counts the users/bots with access, written to User:MusikBot II/AWBListMan/User count and User:MusikBot II/AWBListMan/Bot count and transcluded in {{Wikipedia:AutoWikiBrowser/User count}}
Reports
A report is generated indicating which users were automatically removed (or would be automatically removed, if editing is disabled).
See /Report for the overview, and /Report/User and /Report/Bot for user and bot reports, respectively.
Configuration
Functionality can be tweaked at /config. Configuration data is in the form of JSON.
IMPORTANT:
- Do not modify the config files unless you have a basic understanding of JSON
- Read the documentation first.
- Do not change the key values.
- Keys should always be strings, e.g. use
"option": true
instead ofoption: true
. - Strings should be wrapped in double-quotes, e.g.
"option"
instead of'option'
. - Boolean values must be either
true
orfalse
with no quotations around it. - Numerical values must be integers with no quotations around it.
- The last key/value pair within a hash or the value value in an array must not have a comma at the end of it
- Essentially if the JSON editor interface says there are any syntax errors or warnings, you have done something wrong
Options
[edit]There are two configuration hashes: One for processing bots on the CheckPage, and one for users. The options within the hash are as follows:
Name | Description |
---|---|
block_offset | The number of days after a user has been indefinitely blocked, when the bot will remove them from the CheckPage |
edit_offset | The number of days after a user's last edit, when the bot will first warn them about inactivity, and a week later remove them from the CheckPage (if they don't resume editing). |
enabled | Whether to actually edit the CheckPage for this user type. If editing is disabled, the report is still generated for reference. |