Check for game appeal block on new submissions
This commit is contained in:
parent
bd8061eae3
commit
a9591106ac
@ -35,6 +35,16 @@ export default async function (
|
|||||||
reason: "You do not appear to be banned",
|
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;
|
let userLogs;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user