#How To Fix?
20 messages · Page 1 of 1 (latest)
This Is My daily Command https://srcb.in/SHKWnkNejS
When I Use /da
It Doesn't Add Amount Like 4953+9519=14472 Instead It Add As 49539519
How Do I Fix?
Make sure you parse the string to a number before adding it
String + string doesn't do math, it just puts them together
const amount = parseInt(Math.floor(Math.random() * 8000) +
2000)
await db.add(`money_${user.id}`, `${parseInt(amount)}`)
I Did This But Still Same
Which version are you on?
Of discord.js or quick.db?
Quick.db
9.0.8