cspy uuid support

This commit is contained in:
ChomeNS 2022-10-21 15:01:09 +07:00
parent 26d0f4fab5
commit 9c755bb20c

View file

@ -60,10 +60,11 @@ function inject(bot, dcclient) {
return;
}
});
bot.on('cspy', async function(username, message) {
var username = username.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
var message = message.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
bot.command_handler.run(username, username, message, 'no uuid1!1!1!');
bot.on('cspy', async function(usernamee, messagee) {
const username = usernamee.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
const message = messagee.replace(/§[a-f0-9rlonmk]/g, '').replace(/§/g, '');
const sender = bot.playersAddedPlayers[username];
bot.command_handler.run(username, username, message, sender);
});
dcclient.on('messageCreate', async (message) => {
try {