Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Error while trying to send the discord webhook #69

Open
herhor67 opened this issue Sep 17, 2022 · 1 comment
Open

Error while trying to send the discord webhook #69

herhor67 opened this issue Sep 17, 2022 · 1 comment

Comments

@herhor67
Copy link

herhor67 commented Sep 17, 2022

Hello, I am getting such error (btw which crashes the app, which imho should not happen as discord is just a notification and not a critical piece of the program):

2022-09-17 22:38:45: Unhandled Rejection at: Promise { <rejected> 'Error while trying to send the discord webhook' }
2022-09-17 22:38:45: Unhandled Rejection Reason: Error while trying to send the discord webhook

image

My bet is that the message is too long, because after disabling debug, it works fine.

@PockySweet
Copy link

A big problem with how the bot is handling webhooks is that there is no cooldown or waiting applied which causes the channel webhooks to get ratelimited, if all event types are enabled the bot can end up sending way too many messages super fast, specially when starting it.

A good solution would probably be a way of combining several events in a single embed message instead of each event sending it's own.

For me a solution was using ttvdropbot_webhookevents with the following event types:
"claim newdrop newgame progress start error getresult"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants