This commit is contained in:
Expand-sys 2021-10-12 20:39:40 +11:00
parent 472e3b7792
commit e6ec5215d6

View file

@ -21,11 +21,14 @@ module.exports = {
await rcon.connect(); await rcon.connect();
let content = message.content.split("!mc "); let content = message.content.split("!mc ");
if (message.args[0] == "say") { let fuck = content[1];
let content = content[1].split("say "); console.log(message.author);
content[1] = `say ${message.author.nickname}: ${content[1]} `; if (args[0] == "say") {
fuck = fuck.split("say ");
fuck[1] = `say ${message.author.username}: ${fuck[1]} `;
} }
let res = await rcon.send(`${content[1]}`); console.log(fuck);
let res = await rcon.send(`${fuck[1]}`);
message.reply(`Sent Command ${content}: ${res}`); message.reply(`Sent Command ${content}: ${res}`);
rcon.end(); rcon.end();