mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 14:57:54 +00:00
feat(api): new ratelimit handling
This commit is contained in:
parent
cfde105e19
commit
e23528383f
3 changed files with 91 additions and 20 deletions
|
|
@ -7,6 +7,7 @@ local rate = ARGV[2]
|
|||
local period = ARGV[3]
|
||||
|
||||
-- we're only ever asking for 1 request at a time
|
||||
-- todo: this is no longer true
|
||||
local cost = 1 --local cost = tonumber(ARGV[4])
|
||||
|
||||
local emission_interval = period / rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue