fix for whitelist v2

This commit is contained in:
Expand-sys 2021-10-20 21:02:19 +11:00
parent 3578bc9944
commit 668cf9b78d

View file

@ -24,9 +24,10 @@ module.exports = {
await rcon.connect(); await rcon.connect();
let content = message.content.split("!whitelist ")[1]; let content = message.content.split("!whitelist ")[1];
console.log(content);
let res = await rcon.send(`whitelist add ${content}`); let res = await rcon.send(`whitelist add ${content}`);
message.reply(`whitelisted `); message.reply(`whitelisted ${content}`);
rcon.end(); rcon.end();
} }
}, },