add money
Closed this issue ยท 3 comments
gimmy74 commented
Can you add it back or send it in here please ๐
gimmy74 commented
its really needed lmao
chxlls commented
Hey, the one I deleted was very very outdated but I can do up a simple thing for you to integrate
const db = require("quick.db")`
let ownerID = 'Your ID'
if(message.author.id !== ownerID) return;
let user = message.mentions.members.first() || message.author;
if(isNaN(args[1)) return;
db.add(`money_${message.guild.id}_${user.id}`, args[1])
let bal = await db.fetch(`money_${message.guild.id}_${user.id}`)
message.channel.send(`Added ${args[1]} to ${user}. New balance: ${bal}
Just replace the things you need to as the db name and the arguments, thanks for using the repo
gimmy74 commented
ok thank you