Add vote rate limit

This commit is contained in:
Nanobyte
2020-10-11 16:17:17 +02:00
parent 97383a71af
commit 58097f0d60
6 changed files with 52 additions and 6 deletions

View File

@@ -22,5 +22,12 @@
"mode": "development",
"readOnly": false,
"webhooks": [],
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"] // List of supported categories any other category will be rejected
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"], // List of supported categories any other category will be rejected
"rateLimit": {
"vote": {
"windowMs": 900000, // 15 minutes
"max": 20, // 20 requests in 15min time window
"message": "Too many votes, please try again later"
}
}
}