Purple exclamation mark.svg Planning the future of Botwiki! - Help us bring Botwiki up to date, contribute to our strategy discussion, add bot scripts, and contribute manuals, guides, and tutorials! Almost anything related to bots, particularly those used to edit mediawiki, is welcome.

Red exclamation mark.svg UNABLE TO EDIT? - We've experienced attacks by spambots lately and now require you to confirm your e-mail before you can edit (go to your preferences, enter an e-mail address, and request a confirmation e-mail, then go to your e-mail and click on the confirmation link). We also require new accounts to make a few edits and wait a few minutes before before you can create a page; however, if this is a problem contact us in #botwiki and we can manually confirm your account. Sorry for the inconvenience.

Python:Botwiki family.py

From Botwiki
Jump to: navigation, search
Comment
This is not the current version and may not work
# -*- coding: utf-8  -*-
 
import family
 
# Botwiki, the Bot Encyclopedia!
 
class Family(family.Family):
 
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'botwiki' #Set the family name; this should be the same as in the filename.
        self.langs = {
            'en': 'botwiki.sno.cc', #Put the hostname here.
        }
        self.namespaces[4] = {
            '_default': u'Botwiki', #Specify the project namespace here. Other
        }                               #namespaces will be set to MediaWiki default.
 
        self.namespaces[5] = {
            '_default': u'Botwiki talk:',
        }
 
    def version(self, code):
        return "1.17"  #The MediaWiki version used. Not very important in most cases.
 
    def path(self, code):
        return 'w/index.php' #The path of index.php
Personal tools
Share