Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giveaway doesn't send the end message or log in end event! #465

Closed
oMvhmoud opened this issue Jun 7, 2022 · 14 comments
Closed

Giveaway doesn't send the end message or log in end event! #465

oMvhmoud opened this issue Jun 7, 2022 · 14 comments
Labels
bug Something isn't working

Comments

@oMvhmoud
Copy link

oMvhmoud commented Jun 7, 2022

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.1
  • discord.js version: 13.8.0
  • Custom Database (if you use one): Mongoose

Add any other context about the problem here.

@oMvhmoud oMvhmoud added the bug Something isn't working label Jun 7, 2022
@oMvhmoud
Copy link
Author

oMvhmoud commented Jun 7, 2022

tried quickmongo and the same issue

@Nico105
Copy link
Collaborator

Nico105 commented Jun 8, 2022

If you look into your db when the giveaway 1st ended, is ended = true?

@Nico105
Copy link
Collaborator

Nico105 commented Jun 8, 2022

And you waited some time before you restarted right?

@oMvhmoud
Copy link
Author

oMvhmoud commented Jun 8, 2022

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
image

@oMvhmoud
Copy link
Author

any updates ?

@Nico105
Copy link
Collaborator

Nico105 commented Jun 15, 2022

Could you provide your client options?

@oMvhmoud
Copy link
Author

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.

@Nico105
Copy link
Collaborator

Nico105 commented Jun 18, 2022

i meant your options for the discord.js client, or you maybe named it "bot"

@oMvhmoud
Copy link
Author

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.

@Nico105
Copy link
Collaborator

Nico105 commented Jun 27, 2022

does it happen for every giveaway you start?

@oMvhmoud
Copy link
Author

oMvhmoud commented Jul 1, 2022

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.

@Lebyy
Copy link
Contributor

Lebyy commented Jul 7, 2022

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.
image

@Nico105
Copy link
Collaborator

Nico105 commented Jul 7, 2022

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.
😩

@oMvhmoud
Copy link
Author

oMvhmoud commented Jul 9, 2022

However, Thanks for fixing this problem I tested the bot on version 5.2.2 and it's working good now!

@oMvhmoud oMvhmoud closed this as completed Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants