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

@@ -49,5 +49,12 @@
]
}
],
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"]
"categoryList": ["sponsor", "intro", "outro", "interaction", "selfpromo", "music_offtopic"],
"rateLimit": {
"vote": {
"windowMs": 900000,
"max": 20,
"message": "Too many votes, please try again later"
}
}
}