Greasy Fork

Greasy Fork is available in English.

Ultra HD

none

当前为 2023-06-02 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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