Closed oMvhmoud closed 2 years ago
tried quickmongo and the same issue
If you look into your db when the giveaway 1st ended, is ended = true
?
And you waited some time before you restarted right?
And you waited some time before you restarted right?
yes i waited for about 10 mins which is enough, about the ended it's false always until i restart
any updates ?
Could you provide your client options?
Could you provide your client options?
client.giveawaysManager = new GiveawaysManagerMongoose(client, { default: { botsCanWin: false, embedColor: "#00FFC1", reaction: "🎉", embedColorEnd: "#ff0000", lastChance: { enabled: true, content: "⚠️ **LAST CHANCE TO ENTER !** ⚠️", threshold: 10000, embedColor: "#FF0000" } } });
if you mean fucntions it's the same as the mongoose example you provides.
i meant your options for the discord.js client, or you maybe named it "bot"
i meant your options for the discord.js client, or you maybe named it "bot"
oh, sorry i didn't see that, however im using ur example file mongoose.js so the client is the same.
does it happen for every giveaway you start?
does it happen for every giveaway you start?
ofc, also sorry for being reply late, but my pc was dead however hope you help me.
Can re-produce this the giveaway edit's the message to show the winners but doesn't end in database neither fires the giveawayEnded event.
I reverted the changes that are at fault for this. If you update everything should work again. LMK The slightly weird/annoying thing is, I wasn't able to repro this in my test bot, probably because of its simplicity/low load level. The thing is, those little persistent problems somehow never affect all users and only some, even when the settings are simple or the same as mine.
Those changes were an attempt to fix issues like #392 #445 and the ones that got closed. Unfortunately this will leave those open. (I don't even know if those changes would have fixed them since I didn't get to ask yet, but logically the system should have improved the situation). The issue this time lies in unknown errors/behavior of discord.js message edits, which affected the checking system that now got reverted. 😩
However, Thanks for fixing this problem I tested the bot on version 5.2.2 and it's working good now!
Describe the bug
The giveaway when ends, doesn't send the end message until I restart the bot.
Error
None.
To Reproduce Create a giveaway and wait until it ends.
Expected behavior
Bot sends the end message and log it in the end event.
Screenshots
https://prnt.sc/mfUQhJWPrC0o
Additional context
discord-giveaways
version: 5.2.1discord.js
version: 13.8.0Add any other context about the problem here.