fix(arabot): bug that breaks the economy

This commit is contained in:
Anthony Berg 2023-10-12 18:04:16 +01:00
parent a2a351e2c3
commit 19226bab08

View File

@ -140,6 +140,13 @@ export class BalanceCommand extends Command {
success: false,
};
// Check the amount to be paid is greater than 0
if (amount < 1) {
info.message = 'You need to actually give money, you can\'t send nothing or try to break the'
+ 'economy 😭';
return info;
}
const member = guild.members.cache.get(user.id);
const recipientMember = guild.members.cache.get(recipient.id);