mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 15:42:13 +11:00
fixed
This commit is contained in:
parent
472e3b7792
commit
e6ec5215d6
1 changed files with 7 additions and 4 deletions
|
|
@ -21,11 +21,14 @@ 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 fuck = content[1];
|
||||
console.log(message.author);
|
||||
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}`);
|
||||
rcon.end();
|
||||
|
|
|
|||
Loading…
Reference in a new issue