FANDOM


ChatSendButtons allows to send a preset message to the chat room. The buttons append to the top by the wiki word mark. To install, add the following code to your chat.js on the wiki you want to use it on:

window.chatSendButtons = [
    {
        label: 'Button label',
        message: 'Preset message to send'
    },
    {
        label: 'Spam',
        message: 'Please don\'t spam the chat'
    },
    {
        label: 'Hello',
        message: 'Hello everyone!'
    }
];
importArticles({
    type: "script",
    articles: [
        // ...
        'u:electroboom:MediaWiki:ChatSendButtons.js'
        // ...
    ]
});