update
This commit is contained in:
@ -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] });
|
||||
}
|
||||
},
|
||||
};
|
@ -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) => {
|
||||
|
||||
|
Reference in New Issue
Block a user