I'm hosting a discord bot on pebblehost, and it's been running smoothly for maybe two weeks, and now i'm getting
[ERROR] - Encountered cloudflare rate limit! Retry-After: 2624 s
in the logs, i don't know why this is happening, because it's not like the bot used by thousands or millions, it's used by 20 to 50 people max (the server it's in has around 300 people and not all of them use it) so it's weird.
and in the bot code there isn't any thing repetitive that might trigger a rate limiter.
here's how i initialize it:
try {
jda = JDABuilder.createDefault(DISCORD_TOKEN).build();
jda.getPresence().setActivity(Activity.listening("whatever"));
jda.addEventListener(new SomeCommand(someService, someRepository, anotherRepository));
//add other listeners
} catch (LoginException e) {
log.error("login exception", e);
throw new RuntimeException(e);
}
is there something i can add when creating my jda instance to avoid this rate limiter error?
btw the bot is made with spring boot, i'm more comfortable there.
thanks in advance
