Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (23 sloc) 1.4 KB
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
"""
Configuration file for hewikiReplaceBot
-replacementsPage list of replacements maintained by the community
-defaultSummary prefix for summary.
-safeTemplates templates that the bot most ignore
-safeTemplatesCategories list of categories of templates the bot most ignore
-nobotRgx regex for extracting replacements ids the bot shouldn't execute in the specific page
-fileUsageRgx Regex for file usage
-redirectRgx Regex to identify redirects
-namespaces List of namespace the bot is allowed to work on
-whitelist_editors List of editors allowed to edit the replacementsPage
"""
replacementsPage = 'ויקיפדיה:בוט/בוט החלפות/רשימת החלפות נוכחית'
defaultSummary = '[[וק:הח|בוט החלפות]]: '
safeTemplates = ['ציטוט', 'ציטוטון', 'חלונית', 'מסגרת', 'הדגשה', 'קמץ קטן']
safeTemplatesCategories = ['תבניות קישורים חיצוניים', 'תבניות ציטוט']
nobotRgx = "\{\{ללא בוט\|([0-9]+)\}\}"
fileUsageRgx = '(\[\[:?(?:File|Image|תמונה|קובץ)\s*:\s*.*?[\|\]]|\| *תמונה *= *.+)'
redirectRgx = '#\s*(הפניה|REDIRECT)\s*\[\['
namespaces = [0, 10, 14, 100]
whitelist_editors = ['ערן', 'Matanya', 'Kotz', 'קיפודנחש', 'Tomer T']