mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +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();
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue