Fixed missing variables

This commit is contained in:
2024-03-03 10:45:24 +00:00
parent ecea682fdd
commit 5cc67b27bc
13 changed files with 179 additions and 62 deletions

21
commands/Info/donate.js Executable file
View File

@ -0,0 +1,21 @@
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: 'donate',
private: false,
description: 'Shows links to donate to the service',
run: async (client, interaction) => {
const embed = new EmbedBuilder()
.setColor('#03FC20')
.setTitle('Donation')
.setDescription('Donate to the service I am using with one of the following links:')
.setFields(
{ name: ' ', value: '[Direct donation to the host (creditcard needed)](https://ssh.surf/view/donate/)', inline: false },
{ name: ' ', value: '[Donation through an external provider](https://ko-fi.com/sshsurf)', inline: false },
)
interaction.followUp({ embeds: [embed] })
}
};

2
commands/Management/resetwolfcount.js Normal file → Executable file
View File

@ -19,7 +19,7 @@ module.exports = {
resetcount = 0
// Reset the wolf count
wolfcount.findByIdAndUpdate("6447da87681fd1bc486a4923", {count: resetcount}).then(() => {
wolfcount.findByIdAndUpdate(`${process.env.UPDATEID}`, {count: resetcount}).then(() => {
console.log('');
console.log('Count reset!');
}).catch((error) => {