Kodi:Wiki bot

A Pywikipediabot will require two files in order to work with this wiki:

user-config.py family = 'xbmc' mylang = 'en' usernames['xbmc']['en'] = u'yourBot' # Insert your bot name console_encoding = 'utf-8' password_file = "secretsfile" # Insert path to password file

secretsfile ("yourBot", "yourPassword") # Insert your bot name and password

families/xbmc_family.py import family

class Family(family.Family): def __init__(self): family.Family.__init__(self) self.name = 'xbmc' self.langs = { 'en': u'wiki.xbmc.org', }

self.namespaces[4] = self.namespaces.get(4, {}) self.namespaces[4]['en'] = [u'XBMC'] self.namespaces[5] = self.namespaces.get(5, {}) self.namespaces[5]['en'] = [u'XBMC talk'] self.namespaces[200] = self.namespaces.get(200, {}) self.namespaces[200]['en'] = [u'Keymap'] self.namespaces[201] = self.namespaces.get(201, {}) self.namespaces[201]['en'] = [u'Keymap talk'] self.namespaces[202] = self.namespaces.get(202, {}) self.namespaces[202]['en'] = [u'HOW-TO'] self.namespaces[203] = self.namespaces.get(203, {}) self.namespaces[203]['en'] = [u'HOW-TO talk']

def scriptpath(self, code): return { 'en': u'', }[code]

def version(self, code): return { 'en': u'1.15.1', }[code]