improved safety, minor docker compose changes, cheer parsing bugfixes

This commit is contained in:
2025-09-18 15:53:36 +02:00
parent a06b0a1e03
commit 1d9b810229
16 changed files with 36 additions and 31 deletions

View File

@@ -16,7 +16,7 @@ export default new Command({
const userRecord = await getUserRecord(target);
if (!args[1]) { await sendMessage('Please specify the amount qweribucks you want to give', msg.messageId); return; };
const amount = parseInt(args[1]);
if (isNaN(amount)) { await sendMessage(`${args[1]} is not a valid amount`); return; };
if (isNaN(amount)) { await sendMessage(`'${args[1]}' is not a valid amount`); return; };
if (await target.itemLock()) { await sendMessage('Cannot give qweribucks: item lock is set', msg.messageId); return; };
await target.setLock();
const data = await changeBalance(target, userRecord, amount);