|
@ -101,14 +101,6 @@ class ChartsBot( ): |
|
|
# Set locale to 'de_DE.UTF-8' |
|
|
# Set locale to 'de_DE.UTF-8' |
|
|
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8') |
|
|
locale.setlocale(locale.LC_ALL, 'de_DE.UTF-8') |
|
|
|
|
|
|
|
|
# provisional-onwiki-activation |
|
|
|
|
|
page_active = pywikibot.Page( self.site, "Benutzer:JogoBot/active" ) |
|
|
|
|
|
text_active = page_active.get() |
|
|
|
|
|
|
|
|
|
|
|
if "true" not in text_active.lower(): |
|
|
|
|
|
pywikibot.output( "Bot ist deaktiviert!" ) |
|
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
def run(self): |
|
|
def run(self): |
|
|
"""Process each page from the generator.""" |
|
|
"""Process each page from the generator.""" |
|
|
for page in self.generator: |
|
|
for page in self.generator: |
|
|