Robert Ullmann wrote: > Hi, > > I'm wondering how to go about getting one obscure bit of information. > > The "Interwicket" bot maintains iwiki links for namespace 0 in the > wiktionaries. On some it has a local bot flag, on some it uses the > global bot mechanism. It automatically checks its own user status for > a local bot flag > (action=query&list=users&ususers=Interwicket&usprop=blockinfo|groups|editcount&format=xml) > which is quite simple. But that doesn't show "bot" for global bots. > > To find out if if has global bot status, it needs to know which wikts > have global bots enabled. (It doesn't need to look up its own group > membership, that is just wired in: it knows it is in the global > group.) At present it reads the manually maintained table on meta > (yes, a horrid hack ;-). > > What it needs is to read "wiki set 2", the list of wikis on which > global bots are allowed. I haven't figured out how to do that with the > GUI, let alone API. Anyone know?
action=query&meta=userinfo&uiprop=rights and check for bot right. That /should/ take into account both local and global groups. I can't check since I'm not in a global group, though. _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
