mirror of
https://github.com/Expand-sys/ccashbot
synced 2025-12-16 23:52:14 +11:00
stage
This commit is contained in:
parent
e6ec5215d6
commit
8cddd6a12a
1 changed files with 5 additions and 5 deletions
|
|
@ -8,7 +8,7 @@ module.exports = {
|
|||
name: "mc",
|
||||
description: "send a mc command",
|
||||
guildOnly: true,
|
||||
permissions: "KICK_MEMBERS",
|
||||
permissions: "SEND_MESSAGES",
|
||||
async execute(message, args) {
|
||||
if (!args) {
|
||||
return message.reply("OI you need to specify the command you want");
|
||||
|
|
@ -20,11 +20,11 @@ module.exports = {
|
|||
});
|
||||
|
||||
await rcon.connect();
|
||||
let content = message.content.split("!mc ");
|
||||
let fuck = content[1];
|
||||
console.log(message.author);
|
||||
let content = message.content.substring(message.content.indexOf(" ") + 1);
|
||||
console.log(content);
|
||||
let fuck;
|
||||
if (args[0] == "say") {
|
||||
fuck = fuck.split("say ");
|
||||
fuck = content.split("say ");
|
||||
fuck[1] = `say ${message.author.username}: ${fuck[1]} `;
|
||||
}
|
||||
console.log(fuck);
|
||||
|
|
|
|||
Loading…
Reference in a new issue