Bot #3

MPP Bot

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Bot #3
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  MPP Bot
// @author       COdER#3390
// @include      *://multiplayerpiano.com/*
// @include      *://mppclone.com/*
// @include      *://multiplayerpiano.org/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

const SCRIPT = GM_info.script;
const NAME = SCRIPT.name;
const VERSION = SCRIPT.version;
const AUTHOR = SCRIPT.author;
const pm = NAME + ' (' + VERSION + '): ';

function console() {
    console.log(pm + 'Online!');
}

function mppChatSend(str) {
    MPP.chat.send(str);
}

console();

MPP.client.on('a', function(msg) {
    let cmd = msg.a;

if (cmd == '!help') {
    mppChatSend('Commands are: !help • !about • !room • !ez • !wow.');
}
if (cmd == '!about') {
    mppChatSend('Made by ' + AUTHOR);
}
if (cmd == '!room') {
    mppChatSend('Name: ' + MPP.client.desiredChannelId);
}
if (cmd == '!ez') {
    mppChatSend('EZ!');
}
if (cmd == '!wow') {
    mppChatSend('WOW GOOD!');
};
});