summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-11 13:17:20 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-11 13:17:20 +0200
commita67880b37199757c9ab7190050451c605a615c32 (patch)
tree9b4c9340e77ba3f6dcd6149dc772c291c27f8851 /src/Server.ts
parent:bug: fix guild channel position update (diff)
downloadserver-a67880b37199757c9ab7190050451c605a615c32.tar.xz
:pencil2: fix RateLimit onlyIp typo
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts2
1 files changed, 1 insertions, 1 deletions
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 }));