1//listen i'm not very good at this but at least it works
2//also if you reset the bot the currency will be reseted
3
4client.on('message' , message => {
5 if(message.content === '!add'){
6 const User = message.author //we are using message.author for the id
7 if(!User.currency) User.currency = 0//you can use whatever name for your currency but im just gonna use 'currency'
8 const currency = User.currency
9 let result = currency + 1 //i'm gonna use 1 for example
10 user.currency = result
11
12 console.log(currency) //you should see your currency in the terminal
13 }
14})