chxlls/economybot

add money

Closed this issue ยท 3 comments

Can you add it back or send it in here please ๐Ÿ˜

its really needed lmao

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

ok thank you