diff options
Diffstat (limited to 'commands/balance.js')
| -rw-r--r-- | commands/balance.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/balance.js b/commands/balance.js index fe3b9f8..e0b87e5 100644 --- a/commands/balance.js +++ b/commands/balance.js @@ -25,7 +25,10 @@ module.exports.run = async (client, message) => { let balance = await db.fetch(`userBalance_${user.id}`); - if (balance === null) balance = 0; + if (balance === null) { + db.set(`userBalance_${message.author.id}`, 0); + balance = 0; + } const embed = new RichEmbed() .setDescription(`**AleeCorp Bank**`) .addField('Account Holder: ', user.username, true) |
