Jump to content

User:MajavahBot/EFFP Helper Configuration

Page extended-protected
From Wikipedia, the free encyclopedia

//

{
    // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
    // This JSON file contains VERY advanced regex magic. If you break MajavahBot, you are responsible for fixing it.
    // Some characters have to be double escaped due to JSON syntax things. Always use a JSON validator and parser to check your changes.
    // Comments with two slashes are supported. The bot will automatically read the changes, so please do not experiment here.
    // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING

    // Note: It might take up to 15 minutes for changes to apply.
    
    // page to search for. changing this might break things.
    "reports_page": "Wikipedia:Edit filter/False positives/Reports",

    // page to write reports, for testing only. set to empty string when running in production
    "page_to_write_reports": "",

    // string separating the reports
    "section_header": "==([^=]+)==[^\n=]*\n",
    
    // this will be used to construct the abuse log links
    "abuse_log_format": "https://wiki.riteme.site/wiki/Special:AbuseLog?title=Special:AbuseLog&wpSearchTitle=%s",

    // regex used to parse page title from the article
    "page_title_regex": ";Page (you|they) were editing\n: ([^\n]*)\n",

    // regexes to find "wrong formats", such as pasting the article link directly. these will be automatically fixed
    "page_title_wrong_formats": [
        // direct link to article
        "\\[\\[https:\\/\\/wiki.riteme.site\\/wiki\\/([^\\]]+)]] \\(<span class=\"plainlinks\">[^<]+<\\/span>\\)",
        // wikilink when unnecessary, [[phab:T249503]]
        "\\[\\[\\[\\[([^\\]]+)]]]] \\(<span class=\"plainlinks\">[^<]+<\\/span>\\)"
    ],

    // if these strings are found in a section, that section is considered closed
    "section_closed_strings": [
        "{{effp|f|", "{{effp|f}}", "{{effp|fixed",
        "{{effp|d|", "{{effp|d}}", "{{effp|done",
        "{{effp|t|", "{{effp|t}}", "{{effp|talk", "{{effp|tl|", "{{effp|tl}}", "{{effp|talklink",
        "{{effp|a|", "{{effp|a}}", "{{effp|ad|","{{effp|ad}}", "{{effp|alreadydone",
        "{{effp|nd|", "{{effp|nd}}", "{{effp|notdone",
        "{{effp|r}}", "{{effp|r|", "{{effp|redlink",
        "{{effp|v|}}", "{{effp|v}}", "{{effp|denied",
        "{{effp|b|", "{{effp|b}}", "{{effp|blocked",
        "{{effp|ar}}", "{{effp|archive}}", "{{effp|nft}}", "{{effp|nofilterstriggered}}"
    ],

    "rolling_archive_page_name": "Wikipedia:Edit filter/False positives/Rolling archive",
    "rolling_archive_max_sections": 25,

    // when string is found, the section will be archived in the seconds specified from last activity in the report
    "archive_delays": {
        // archive now: instantly
        "{{effp|ar": 0,
        // vandalism: 1.5h
        "{{effp|v}}": 5400,
        "{{effp|v|": 5400,
        "{{effp|denied": 5400,
        // blocked: 3h
        "{{effp|b}}": 10800,
        "{{effp|b|": 10800,
        "{{effp|blocked": 10800,
        // fixed: 12h
        "{{effp|f|": 43200,
        "{{effp|f}}": 43200,
        "{{effp|fixed": 43200,
        // done: 12h
        "{{effp|d}}": 43200,
        "{{effp|d|": 43200,
        "{{effp|done": 43200,
        // not done: 6h
        "{{effp|nd|": 21600,
        "{{effp|nd}}": 21600,
        "{{effp|notdone}}": 21600,
        "{{effp|r}}": 21600,
        "{{effp|r|": 21600,
        "{{effp|redlink": 21600,
        "{{nd}}": 21600,
        "{{notdone}}": 21600,
        "{{not done}}": 21600,
        // moot: 6h
        "{{effp|moot": 21600,
        "{{effp|m|": 21600,
        "{{effp|m}}": 21600,
        // request on talk page: 12h
        "{{effp|t|": 43200,
        "{{effp|t}}": 43200,
        "{{effp|talk": 43200,
        "{{effp|tl|": 43200,
        "{{effp|tl}}": 43200,
        "{{effp|talklink": 43200,
        // already done: 12h
        "{{effp|a|": 43200,
        "{{effp|a}}": 43200,
        "{{effp|ad|": 43200,
        "{{effp|ad}}": 43200,
        "{{effp|alreadydone": 43200,
        // nofilterhits: 6h
        "{{effp|nft}}": 21600,
        "{{effp|nofilterstriggered}}": 21600
    },

    // if any of these are found on a report, that report will not be archived.
    "archive_blockers": [
        "{{effp|noarchive", "{{effp|pin"
    ],

    // archive all threads with no matches from archive_delays in 3 days
    "no_resolution_archive_time": 259200
}
//