Bot #3

MPP Bot

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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!');
};
});