i'm kinda retarded
This commit is contained in:
parent
04aee60f8a
commit
80c24cf493
1 changed files with 2 additions and 0 deletions
|
@ -56,5 +56,7 @@ module.exports = async (app, req, res) => {
|
|||
return res.status(400).send(`You have been banned from commenting for ${(parseInt(banStuff[1]) / 86400).toFixed(0)} days. Reason: ${banStuff[2] || "None"}`)
|
||||
}
|
||||
res.status(200).send(`Comment posted to level ${params.levelID} with ID ${body}`)
|
||||
rateLimit[req.body.username] = Date.now();
|
||||
setTimeout(() => {delete rateLimit[req.body.username]; }, cooldown);
|
||||
})
|
||||
}
|
Loading…
Add table
Reference in a new issue