mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
cspy uuid support
This commit is contained in:
parent
26d0f4fab5
commit
9c755bb20c
1 changed files with 5 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue