1.0.20 • Published 6 years ago
discord-community v1.0.20
discord-community
Not working sorry.
Install
You can install this by doing:
<npm install discord-community>
Usage
Check this example up:
const community = require('discord-community')
//this will fetch the money
community.fetchMoney(message.author.id).then((i) => { //you can add message.guild.id to not make it global
console.log(i.money)
})
//this would add x amount of money
community.updateMoney(message.author.id, 100)
this is just with Money but you can also use:
community.fetchRep(message.author.id).then((i) => {
console.log(i.rep)
})
//this is for casino bots...
community.updateChips(message.author.id, 50).then((i) => {
console.log(i.chips)
})
community.updateExp(message.author.id, 99)
community.fetchLevel(message.author.id).then((i) => {
console.log(i.level)
})
Remember, you can add message.guild.id to make it guild only!
Everything
fetchChips updateChips
fetchExp updateExp
fetchRep updateRep
fetchLevel updateLevel
fetchMoney updateMoney