Open Tomato6966 opened 3 years ago
I would love to receive help
you're still using "auto" sharding I assume?
yes
im still using the internal sharding method provided by discord.js for the clientoption
anything?
Hi, is there any solution to this problem?
idk
Same problem !
experiencing the same issue and wondering if anyone else has found a solution?
Tried to fix, but made things worse it with #462 Its maybe fruitless to ask, but did anything change with discord.js v14 regarding this?
I dont know, i will soon test this package again tho, with psql this time tho
facing the same problem, can someone give us a solution for this?
Still facing same issue..
So i did that for bonusEntries and exemptMembers with the new Function syntax
But the giveaway is still sometimes not ending, especially after the bot restarts, or after a few days of giveaway hosting duration..
I dont know anything more what to do or how i could find the problem because i cant find the logs.. and there are no discord-giveaway syntax error styles
this is my whole code for the giveaway command:
```javascript const Discord = require("discord.js"); const {MessageEmbed, Permissions} = require("discord.js"); const config = require(`${process.cwd()}/botconfig/config.json`) const ms = require("ms"); const { databasing, swap_pages } = require(`${process.cwd()}/handlers/functions`); module.exports = { name: "giveaway", aliases: ["g"], category: "🚫 Administration", description: "Giveaway manager", usage: "giveawayAnd this is my creation of the giveaway manager:
```javascript const { GiveawaysManager } = require('discord-giveaways'); client.giveawayDB = new Enmap({ name: 'giveaways', dataDir: "./databases" }); const GiveawayManagerWithOwnDatabase = class extends GiveawaysManager { async getAllGiveaways() { return client.giveawayDB.fetchEverything().array(); } async saveGiveaway(messageId, giveawayData) { client.giveawayDB.set(messageId, giveawayData); return true; } async editGiveaway(messageId, giveawayData) { client.giveawayDB.set(messageId, giveawayData); return true; } async deleteGiveaway(messageId) { client.giveawayDB.delete(messageId); return true; } }; const manager = new GiveawayManagerWithOwnDatabase(client, { default: { botsCanWin: false, embedColor: require(`${process.cwd()}/botconfig/embed.json`).color, embedColorEnd: require(`${process.cwd()}/botconfig/embed.json`).wrongcolor, reaction: '🎉' } }); // We now have a giveawaysManager property to access the manager everywhere! client.giveawaysManager = manager; client.giveawaysManager.on("giveawayReactionAdded", (giveaway, member, reaction) => { console.log(`${member.user.tag} entered giveaway #${giveaway.messageId} (${reaction.emoji.name})`); }); client.giveawaysManager.on("giveawayReactionRemoved", (giveaway, member, reaction) => { console.log(`${member.user.tag} unreact to giveaway #${giveaway.messageId} (${reaction.emoji.name})`); }); client.giveawaysManager.on("giveawayEnded", (giveaway, winners) => { console.log(`Giveaway #${giveaway.messageId} ended! Winners: ${winners.map((member) => member.user.username).join(', ')}`); }); ```