Androz2091 / discord-giveaways

🎉 Complete framework to facilitate the creation of giveaways using discord.js
https://discord-giveaways.js.org
MIT License
334 stars 127 forks source link

Giveaways stop updating #206

Closed GulliDev closed 3 years ago

GulliDev commented 3 years ago

Hi, Sometimes it happens to me that the giveaway stops updating after a while

"discord-giveaways": "^4.4.3",
Nico105 commented 3 years ago

"A while" is after approximately what time? And "sometimes" means not for all giveaways? Anything special about the ones that do have the issue?

GulliDev commented 3 years ago

It stopped working for about 3 days, and sometimes it stops working for a while and sometimes after a few hours

Nico105 commented 3 years ago

Do the giveaways still automatically end or not?

GulliDev commented 3 years ago

I'm going to try the 10h test now, I'll let you know

GulliDev commented 3 years ago

but so far it has stopped working on its own. There was nothing in the database either

GulliDev commented 3 years ago

Now it stopped working in a few minutes

Nico105 commented 3 years ago

but so far it has stopped working on its own. There was nothing in the database either

So it gets removed from the DB automatically?

GulliDev commented 3 years ago

Only sometimes, It's not gone now https://prnt.sc/y8rpw0

Nico105 commented 3 years ago

If you use vsc, could you maybe try debugging the _checkGiveaway function inside the Manager.js file with breakpoints to find out where it stops. If the _checkGiveaway function does not even get called then debug the _init function in the same file.

MaximKing1 commented 3 years ago

@Ult1m1 im getting this error aswell any fixes yet? If your still facing the issue let me know...

Nico105 commented 3 years ago
const manager = new GiveawayManagerWithOwnDatabase(client, {
    default: {
    }
}, false); // Set auto initalization to false

Bot Ready Event

client.giveawaysManager._init();

@Ult1m1 This seems to have fixed it for Maxim, pls try it.

GulliDev commented 3 years ago

Everything is already working well

Nico105 commented 3 years ago

Did you do smth? @Ult1m1