say now says username

This commit is contained in:
Expand-sys 2021-10-12 20:05:38 +11:00
parent af03536410
commit b15bc4f014

View file

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