mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 15:42:13 +11:00
say now says username
This commit is contained in:
parent
af03536410
commit
b15bc4f014
1 changed files with 4 additions and 0 deletions
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue