i'm kinda retarded

This commit is contained in:
GDColon 2020-02-27 23:35:42 -05:00
parent 04aee60f8a
commit 80c24cf493

View file

@ -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);
})
}