From bec70800df24ce0af95f3e3b91b4821d3743c418 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 11 Aug 2021 13:17:20 +0200 Subject: :pencil2: fix RateLimit onlyIp typo --- src/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Server.ts') diff --git a/src/Server.ts b/src/Server.ts index fcc5374b..69222636 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -86,7 +86,7 @@ export class FosscordServer extends Server { // @ts-ignore this.app = api; api.use(RateLimit({ bucket: "global", count: 10, window: 5, bot: 250 })); - api.use(RateLimit({ bucket: "error", count: 5, error: true, window: 5, bot: 15, onylIp: true })); + api.use(RateLimit({ bucket: "error", count: 5, error: true, window: 5, bot: 15, onlyIp: true })); api.use("/guilds/:id", RateLimit({ count: 5, window: 5 })); api.use("/webhooks/:id", RateLimit({ count: 5, window: 5 })); api.use("/channels/:id", RateLimit({ count: 5, window: 5 })); -- cgit 1.5.1