mirror of
https://github.com/Expand-sys/mcbot
synced 2025-12-17 15:22:12 +11:00
butts
This commit is contained in:
parent
4e9d3e4cdd
commit
7bf97425a6
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ module.exports = {
|
||||||
let mcusr = interaction.options.getString("mcusername")
|
let mcusr = interaction.options.getString("mcusername")
|
||||||
let collection = await dbclient.db("ntcmcbot").collection("users");
|
let collection = await dbclient.db("ntcmcbot").collection("users");
|
||||||
let userdb = await collection.findOne({DISCORDID: interaction.member.id})
|
let userdb = await collection.findOne({DISCORDID: interaction.member.id})
|
||||||
|
interaction.deferReply()
|
||||||
let highest = "default";
|
let highest = "default";
|
||||||
switch(true) {
|
switch(true) {
|
||||||
case interaction.member.roles.cache.has(process.env.MCSTAFF_ROLE):
|
case interaction.member.roles.cache.has(process.env.MCSTAFF_ROLE):
|
||||||
|
|
@ -75,7 +75,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
let res = await rcon.send(`lp user ${mcusr} group add ${highest}`);
|
let res = await rcon.send(`lp user ${mcusr} group add ${highest}`);
|
||||||
console.log(res)
|
console.log(res)
|
||||||
await sendResponse(interaction, `added ${mcusr} to the role ${highest}`);
|
await interaction.editReply(`added ${mcusr} to the role ${highest}`);
|
||||||
await rcon.end();
|
await rcon.end();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue