Check for game appeal block on new submissions

This commit is contained in:
Regalijan 2023-12-19 01:32:28 -05:00
parent bd8061eae3
commit a9591106ac
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -35,6 +35,16 @@ export default async function (
reason: "You do not appear to be banned",
};
const appealBlock = await context.env.DATA.get(`gameappealblock_${user}`);
if (appealBlock)
return {
can_appeal: false,
reason: `You must wait until ${new Date(
parseInt(appealBlock),
).toLocaleString()} to submit another appeal`,
};
let userLogs;
try {