Bot

Bot is a very general term on MPP. Just like Discord, MPP has a ton of scripters in the community who write anything from little bots to mess with in chat, up to NMPB - a system that uses its own MIDI database to play back music files onto the site.

Tampermonkey Scripts
Tampermonkey scripts are the most common form of bot on MPP.

Though Tampermonkey may mostly be used for making frontend userscripts for other pages, on MPP, Tampermonkey is the start of everyone's botting career. Tampermonkey is an extension for most modern-day web browsers that runs clientside JavaScript on page load. It comes with its own script editor and supports requiring other scripts.

Tampermonkey scripts are limited, however, because they only have access to localStorage and can't save to a file without making a request to an external source. This makes saving user data (such as inventories, balance, etc.) very tedious.

A base script is provided below for reference. // ==UserScript== // @name        New Userscript // @namespace   http://tampermonkey.net/ // @version     0.1 // @description try to take over the world! // @author      You // @match       https://www.multiplayerpiano.com/* // @match       https://mpp.terrium.net/* // @match       https://piano.ourworldofpixels.com/* // @grant       none // ==/UserScript== MPP.client.on("a", function (msg) { // "a" is the listener used for chat    let cmd = msg.a; // msg.a is the text being sent     if (cmd == "/help") { // Check to see if the person typed "/help" into chat         MPP.chat.send("Commands: /help"); // Send a message back     } });

Chat Bots
The term "Chat Bot" covers anything where the user must use chat to interact with the bot to get an output. These may be written in any programming language, thus not limited to Tampermonkey, though the most popular programming language used is JavaScript because that is the language that Client.js is written in. This inlcudes Qhy, 7566, Theta, OmegaBot, BachBot, ShadowOS, and JPDLD's MPP History.

Autoplayers
Autoplayers are bots that play music automatically. This includes the JS MIDI player script and NMPB. This can also apply to Piano From Above and Synthesia, as MPP allows for MIDI input.

Discord Bridges
Discord bridges are bots that link MPP's chat to a Discord channel. The most notable use of this is on the bridge server.