This commit is contained in:
2023-05-24 08:31:35 +00:00
parent 7a84de548a
commit aea2009d93
16 changed files with 503 additions and 166 deletions

View File

@ -1,46 +0,0 @@
const { EmbedBuilder } = require('discord.js');
const wolfcount = require('../../models/wolfcount');
ownerList = [
'213966480621043712',
'237542879227019264',
'294840381080600576'
];
module.exports = {
name: "wolfcountreset",
private: true,
description: "Reset the wolfcount",
run: async (client, interaction) => {
if (ownerList.includes(interaction.user.id)) {
resetcount = 0
// Reset the wolf count
wolfcount.findByIdAndUpdate("6447da87681fd1bc486a4923", {count: resetcount}).then(() => {
console.log('');
console.log('Count reset!');
}).catch((error) => {
console.error(error);
});
const embed = new EmbedBuilder()
.setColor("#FF0000")
.setTitle("🐺 count reset")
.setDescription(`The count has been reset. (Requested by: ${interaction.user.tag})`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
} else {
const embed = new EmbedBuilder()
.setColor("#FF0000")
.setTitle("🐺 no perms")
.setDescription(`You have no perms to do this.`)
.setTimestamp()
.setFooter({ text: `Requested by ${interaction.user.tag}`, iconURL: `${interaction.user.displayAvatarURL()}` });
interaction.followUp({ embeds: [embed] });
}
},
};

View File

@ -34,7 +34,7 @@ mongoose.connect(uri, {
module.exports = {
name: "wolfcount",
private: false,
description: "Returns the amount of times the letters wolf were said by users (state refreshes every 2 minutes).",
description: "Returns the amount of times the letters wolf were said by users.",
run: async (client, interaction) => {