Greasy Fork is available in English.
none
当前为
// ==UserScript==
// @name Ultra HD
// @namespace http://tampermonkey.net/
// @version 0.1
// @description none
// @author Koт*добрый*#5339
// @match https://multiplayerpiano.com/*
// @match https://mpp.hyye.tk/*
// @match https://mppclone.com/*
// @license ISC
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
const admins = ['e8072c5be175fa47faeb9258', 'c272b0f54ca440c68d7dfaa4'];
const botname = 'Ultra HD'
MPP.client.on("a", function(msg) { // msg = message
var asgr = msg.a.split(' ');
var cmd = asgr[0];
var input = msg.a.substring(cmd.length).trim();
if (cmd == '&help') { // help command UwU
MPP.chat.send('Commands: `help`, `about`, `who`, `say`.');
MPP.chat.send('Fun: `cat`, `dog`, `hi`, `bye`, `123`, `abc`, `8ball`.');
}
if (cmd == '&about') { // about command OwO
MPP.chat.send('This bot made by `Koт*добрый*#5339`'); // Meow
}
if (cmd == '&who') { // who command
MPP.chat.send('Your name is: `' + msg.p.name + '` | ID: `' + msg.p.id + '` | Color: `' + msg.p.color + '`'); // 1. msg.p.name = name | 2. msg.p.id = id | 3. msg.p.color = color
}
if (cmd == '&say') { // msg command
MPP.chat.send(msg.p.name + ' say msg: `' + input + '`'); // 1. msg.p.name = name | input = msg
}
if (cmd == '&cat') { // cat command
MPP.chat.send('https://klike.net/uploads/posts/2022-08/1661859117_j-11.jpg'); // cat link
}
if (cmd == '&dog') { // dog command
MPP.chat.send('https://kot-pes.com/wp-content/uploads/2018/07/post_5b3aa89fe11a2.jpeg'); // dog link
}
if (cmd == '&hi') { // hi command
MPP.chat.send('Hi, `' + msg.p.name + '` ! :)'); // 1. msg.p.name = name
}
if (cmd == '&bye') { // bye command
MPP.chat.send('Bye, `' + msg.p.name + '` ! :('); // 1. msg.p.name = name
}
if (cmd == '&123') { // 123 command
MPP.chat.send('123...'); // 123
}
if (cmd == '&abc') { // abc command
MPP.chat.send('abc...'); // abc
}
if (cmd == '&8ball') { // 8 ball command!
var words = ['Yes', 'No', 'Maybe', 'Try again']; /* var words = answers | var random = random */ var random = Math.floor(Math.random() * words.length);
MPP.chat.send(' ' + words[random]); //send answer
}
}
)();
console.log('Ultra HD is online!');