您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
none
当前为
- // ==UserScript==
- // @name Bot #2
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description none
- // @author COdER
- // @include *://multiplayerpiano.com/*
- // @include *://mppclone.com/*
- // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
- // @grant none
- // ==/UserScript==
- MPP.client.on('participant added', pp => {
- MPP.chat.send('User ' + pp.name + ' (' + pp.id + ') ' + 'joined to the room!');
- })
- MPP.client.on("a", function(msg) {
- let cmd = msg.a;
- if (cmd == '/help') {
- MPP.chat.send('Commands are: /help, /about, /!!!, /who, /random.');
- }
- if (cmd == '/about') {
- MPP.chat.send('Bot made by COdER.');
- }
- if (cmd == '/!!!') {
- MPP.chat.send('!@#$%^&*()');
- }
- if (cmd == '/who') {
- MPP.chat.send('Your name is: ' + msg.p.name + ' | ID: ' + msg.p.id + ' | Color: ' + msg.p.color);
- }
- if (cmd == '/random') {
- var words = ['Wow!', 'Lucky!', 'Bruh.', 'YES!']; var random = Math.floor(Math.random() * words.length);
- MPP.chat.send('Random word: ' + words[random]);
- }
- })