User:APBOT: Difference between revisions
m Protected "User:APBOT" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite) [Protect=Allow only administrators] (indefinite)) |
No edit summary |
||
| Line 3: | Line 3: | ||
This bot generates an inactivity report for administrators, bureaucrats, interface administrators, and non-steward suppressors on TestWiki. It checks the last activity of users in these roles and categorizes them based on their activity status. The report is then posted to this page - [[Activity]]. |
This bot generates an inactivity report for administrators, bureaucrats, interface administrators, and non-steward suppressors on TestWiki. It checks the last activity of users in these roles and categorizes them based on their activity status. The report is then posted to this page - [[Activity]]. |
||
== |
==How It Works== |
||
# |
#'''Login''': The bot logs in using the provided credentials. |
||
# |
#'''Fetch Users''': It retrieves a list of users in the specified groups, excluding: |
||
#* |
#*Users specified in <code>EXCLUDED_USERS</code> |
||
# |
#'''Check Activity''': It fetches the last edit or log action timestamp for each user. |
||
# |
#'''Determine Status''': |
||
#* |
#*'''Active''': Activity within the last 30 days |
||
#* |
#*'''Inactive (1 month)''': No activity in the last 30–60 days |
||
#* |
#*'''Inactive (2 months)''': No activity in the last 60–75 days |
||
#* |
#*'''Inactive (2 months, 2 weeks)''': No activity for more than 75 days |
||
# |
#'''Generate Report''': |
||
#* |
#*Displays user activity status in a table |
||
#* |
#*Lists grace periods only for users inactive for more than 2 months and 2 weeks |
||
== How it runs and who runs it? == |
|||
| ⚫ | |||
[[User:TheAstorPastor|TheAstorPastor]] is the primary and currently the only operator of the bot. It is scheduled to run every day at 2:30 PM IST using [[enwiki:Windows_Task_Scheduler|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 table updates, please [[User:TheAstorPastor#How do you contact me?|contact]] TheAstorPastor (TheAP). |
|||
== Where's the source code? == |
|||
| ⚫ | |||
Revision as of 14:15, 6 April 2025
| 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 generates an inactivity report for administrators, bureaucrats, interface administrators, and non-steward suppressors on TestWiki. It checks the last activity of users in these roles and categorizes them based on their activity status. The report is then posted to this page - Activity.
How It Works
- Login: The bot logs in using the provided credentials.
- Fetch Users: It retrieves a list of users in the specified groups, excluding:
- Users specified in
EXCLUDED_USERS
- Users specified in
- Check Activity: It fetches the last edit or log action timestamp for each user.
- Determine Status:
- Active: Activity within the last 30 days
- Inactive (1 month): No activity in the last 30–60 days
- Inactive (2 months): No activity in the last 60–75 days
- Inactive (2 months, 2 weeks): No activity for more than 75 days
- Generate Report:
- Displays user activity status in a table
- Lists grace periods only for users inactive for more than 2 months and 2 weeks
How it runs and who runs it?
TheAstorPastor is the primary and currently the only operator of the bot. It is scheduled to run every day at 2:30 PM IST 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 table updates, please contact TheAstorPastor (TheAP).
Where's the source code?
The code is available at https://github.com/younginspiration/TestWiki_Bot under MIT License. PLEASE NOTE THAT THE CODE ISN'T UPTO DATE . It doesn't reflect the functioning of the bot.