diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-15 17:48:29 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-15 17:48:29 +0100 |
| commit | 87ed4adab569504e4ce053f8288a84404f63c8dc (patch) | |
| tree | 14091f46eaab9593d22332a322c7eb33e174bafc /discord | |
| parent | 21ce33731c429ef3feb2f91c4b4ad8930df8906e (diff) | |
adjust discord ratelimit parameter
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/pylon.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/pylon.lua b/discord/pylon.lua index 358fd8f..15a1418 100644 --- a/discord/pylon.lua +++ b/discord/pylon.lua @@ -47,7 +47,7 @@ function Discord._req(self, url, payload) self.log:warn("getting 429'd, waiting",rl_wait) cqueues.sleep(rl_wait) goto again - elseif rl_rem < 5 then + elseif rl_rem <= 3 then local wait = rl_wait -- or rl_wait/(rl_rem+1)? their algorithm is mysterious self.log:info("ratelimit limit getting low ",rl_rem,", waiting",wait) if wait>5 then self.log:warn("isn't",wait,"a little long to be waiting?") end |
