let UserJSON = JSON.parse(Fs.readFileSync("./DataBase/users.json"));
var Sorted = Object.entries(UserJSON).sort((a, b) => b[1].money- a[1].money);
if (Sorted.length > 10) Sorted = Sorted.slice(0, 10);
var LBString = "";
Sorted.forEach(user => {
LBString += `${client.users.cache.find(u => u.id == user[0])} - ${user[1].money}n`;
});
var LBEmbed = new Discord.MessageEmbed()
.setColor('#FFFFFF')
.setTitle("**Coins Leaderboard**")
.setDescription(LBString);
message.channel.send(LBEmbed);
client.channels.cache.get('941016208940077086').send(`${message.author.username} has used $coinslb`)
{“599675959888707594”:{“money”:492,”lastbeg”:1644580691540,”lastwork”:1644580757380},”617797297924866093″:{“money”:0,”lastbeg”:0,”lastwork”:0}}