User:APBOT

From Test Wiki
This user is a bot operated by TheAstorPastor (talk).
It is used to help make many small changes that would take a long time for a person to do alone.
Administrators: if this bot isn't working correctly or is doing bad things, please stop it.

This bot monitors user activity on TestWiki and manages user rights based on inactivity thresholds. It specifically tracks administrators, bureaucrats, and interface administrators, automatically removing rights from inactive users and notifying them of these changes.

How It Works

  1. Login: The bot logs in using the provided credentials.
  2. Fetch Users: It retrieves a list of users in the specified groups (sysop, bureaucrat, interface-admin), excluding users listed in EXCLUDED_USERS.
  3. Check Activity: For each user, the bot fetches the timestamp of their last edit or logged action.
  4. Determine Status and Take Action:
    • Warning Threshold: Users inactive for more than 75 days (2.5 months) receive a warning message on their talk page.
    • Removal Threshold: Users inactive for more than 90 days (3 months) have their rights removed if possible.
  5. Rights Handling:
    • Removable Rights: The bot can directly remove sysop, bureaucrat, autopatrolled, confirmed, editor, and rollbacker rights.
    • Steward Rights: Rights like interface-admin require steward action and are flagged in the report.
  6. Communication:
    • Posts warnings on user talk pages for those approaching inactivity threshold
    • Notifies users when rights are removed
    • Updates the Activity page with a comprehensive report

Activity Reporting

The bot generates detailed activity reports including:

  • Users with rights removed due to inactivity (listing removed rights)
  • Users approaching inactivity threshold (listing current rights)
  • Last activity date and days of inactivity for each user

How does it run, and who runs it?

TheAstorPastor is the primary and currently the only operator of the bot. It is scheduled to run every day using Windows Task Scheduler. The schedule might fail if the device is shut down, but this usually doesn’t happen. TheAstorPastor also runs the bot manually at least once a week. For any updates to the list of excluded users, please contact TheAstorPastor (TheAP) through Discord, if possible.

Excluded Users

The bot excludes specific users from activity checks. Bots and stewards are currently exempted. The current hardcoded list includes:

"EPIC", "Dmehus", "Drummingman", "Justarandomamerican", "MacFan4000", "Abuse filter", "Bosco-bot", "DodoBot",     "FuzzyBot", "MacFanBot"

Where's the code for the bot?

It is not public yet; however, if you wish to see it, please contact TheAP through Discord.