Add a pywikibot.User method to find the last activity:
e.g.
def last_activity(self) -> pywikibot.Timestamp:
or
def inactive(self, days: int) -> bool:
and find the last activitity using
- User.last_edit
- User.deleted_contributions()
- User.logevents
- refer abuselog (API:Abuselog) there is no implementation yet
Use case(s):
Find inactive IP users to cleanup discussion pages, tag inactive templates to user/user talk pages etc.
Benefits:
Find inactive users for a given time delta