ROBLOX-Discord Webhooks

What I currently have:
Right now I have my webhooks all set up fine, if someone joins it messages me and vice versa if they leave. I own a 12K group and as such the game activity can span to over 30+ on weekends.

My issue:
The issue is people can crash and join and leave and be teleported which means my webhook can be spammed with requests - the max logged at a time was around 76 in a single minute which inevitably got my webhook banned.

If I restarted by webhook it would most likely get itself banned again by Discord, I know I could create two webhooks and split the traffic (between joining and leavinfg) however I just want to know is there any way to limit traffic so that it creates a queue out of the webhooks and then fires them every few seconds.

Chances are I’ll just split the traffic between two webhooks, but it would be nice to know if there actually is a way of doing it.

5 Likes

Discord Webhooks are not supposed to be used the way you’re using webhooks right now. Why would you need to know when someone joins/leaves your game?

1 Like

You should not use Discord for logging.

For proper use cases that are not against Discord TOS, yes, you can queue up events yourself and then only send them once every few seconds until the queue is empty. This is trivial to implement.

That’s against Discord TOS.

15 Likes

Use game analytics or github or something else for logging, discord webhooks are best used for user bug reports and feedback messages

This is Roblox-Discord webhooks FYI

1 Like

Error tracking with Sentry on Roblox This is a better method of logging things.

Thanks for the heads up, I shall avoid using it for logging.

I knew I did something wrong :tired_face:

The moderators we have for the game are looking at accounts which may be suspicious (as we have had cases of exploiting) + general interest of who joins the game the most and to track how long each player has been on the game (so we know who to promote and demote based on activity).

You could just store that on an external database. But do not use discord webhooks for stuff like this.

Fix the cheat, not the cheaters. They will just keep joining on alternate accounts until the exploit itself is patched.

8 Likes