Modify bot detection so that code will detect also if user is global bot or former global bot. This needs to be queried from metawiki:
You can read the global bot information like this using SQL
Example for SQL query can be found here
Site parameter for metawiki can be fetched like this
site = pywikibot.Site("meta", "meta")Bot detection is located in autoreview.py.
