FANDOM


PingEveryone is a script that is used to ping everyone in the chat at once. To use this script, add this code to your MediaWiki:Chat.js file:

importArticles({
    type: 'script',
    articles: [
        // other scripts...
        'u:electroboom:MediaWiki:PingEveryone/code.js'
        // other scripts...
    ]
});

To customize the script, you can add this code before the imports:

window.pingEveryone = {
    modsOnly: true, // So only moderators can use the ping
    color: 'color', // The background color of the message that pinged everyone, default is yellow
    phrase: 'phrase', // The phrase to use that will ping everyone, default is @everyone
    audio: 'file' // The audio file that will be used to ping everyone
};