mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-10-14 12:07:40 +02:00
fix(arabot): bug that breaks the economy
This commit is contained in:
parent
a2a351e2c3
commit
19226bab08
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user