feature/disbale emp+uav commands

This commit is contained in:
SowinskiBraeden committed 2023-10-21 21:23:36 -07:00
1 parent 3a29aaf316
commit 1d1698c8c4
6 files changed
+64 -8

No files matched your search

+1 -1
View File
@@ -39,10 +39,10 @@ module.exports = {
* @param {*} param3
*/
run: async (client, interaction, args, { GuildDB }) => {
if (client.exists(GuildDB.purchaseUAV) && !GuildDB.purchaseUAV) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Notice:** The admins have disabled this feature')] });
let banking = await client.dbo.collection("users").findOne({"user.userID": interaction.member.user.id}).then(banking => banking);
if (!banking) {
banking = await createUser(interaction.member.user.id, GuildDB.serverID, GuildDB.startingBalance, client)
if (!client.exists(banking)) return client.sendInternalError(interaction, err);