Difference between revisions of "User:Strcat"

From ArchWiki
Jump to: navigation, search
Line 13: Line 13:
 
         self.name = 'archwiki'
 
         self.name = 'archwiki'
 
         self.langs = {'en':'wiki.archlinux.org',
 
         self.langs = {'en':'wiki.archlinux.org',
                       'fr':'wiki.archlinux.fr'}
+
                       'fr':'wiki.archlinux.fr',
 +
                      'ro':'wiki.archlinux.ro'}
 +
 
 +
        self.namespaces[1]['ro'] = u'Discuţie'
 +
 
 +
        self.namespaces[3]['ro'] = u'Discuţie Utilizator'
 +
        self.namespaces[6]['ro'] = u'Fişier'
 +
        self.namespaces[7]['ro'] = u'Discuţie Fişier'
 +
        self.namespaces[9]['ro'] = u'Discuţie MediaWiki'
 +
        self.namespaces[11]['ro'] = u'Discuţie Format'
 +
        self.namespaces[13]['ro'] = u'Discuţie Ajutor'
 +
        self.namespaces[15]['ro'] = u'Discuţie Categorie'
  
 
         self.namespaces[4] = {'_default':'ArchWiki',
 
         self.namespaces[4] = {'_default':'ArchWiki',
                               'fr':'ArchwikiFR'}
+
                               'fr':'ArchwikiFR',
 +
                              'ro':'ArchWikiRo'}
 
         self.namespaces[5] = {'_default':'ArchWiki talk',
 
         self.namespaces[5] = {'_default':'ArchWiki talk',
                               'fr':'Discussion ArchwikiFR'}
+
                               'fr':'Discussion ArchwikiFR',
 +
                              'ro':u'Discuţie ArchWikiRo'}
  
 
         self.category_attop = ['en']
 
         self.category_attop = ['en']
Line 38: Line 51:
  
 
     def version(self, code):
 
     def version(self, code):
         # Special:Version
+
         # https://wiki.archlinux.org/index.php/Special:Version
 
         if code == 'fr':
 
         if code == 'fr':
 
             return '1.16.2'
 
             return '1.16.2'
 +
        elif code == 'ro':
 +
            return '1.15.5'
 
         else:
 
         else:
 
             return '1.17.0'</nowiki>}}
 
             return '1.17.0'</nowiki>}}

Revision as of 23:17, 22 September 2011

thestinger's cute little bot.

About this bot

Right now I'm using pywikipediabot/pywikibot, and so far just the scripts that are included (the newer pywikibot has a nicer API but doesn't include all the nice scripts) because they cover almost everything (replace.py lets you use regex).

pywikipediabot/pywikibot archwiki family file: Template:File

patch to fix the marker not being removed with the category_attop setting (for pywikipediabot, don't know if pywikibot has the same problem since I'm not using it for categories) [I should probably report this upstream, but I'm not sure if the ArchWiki causes the problem]: Template:File