Answer the question
In order to leave comments, you need to log in
What variable should be written?
const Discord = module.require("discord.js");
const fs = require("fs");
let profile = require("../profile.json");
const bot = new Discord.Client();
module.exports.run = async (bot,message,args) => {
let embed = new Discord.RichEmbed()
.setDescription("✅Профиль",message.author)
.setColor('#FF8C00')
.addField("Монеты:",`**${author.coins}**`) //какую надо писать переменную
bot.send(embed);
};
module.exports.help = {
name: "p",
aliases: ['Профиль', 'Profile', 'п']
};
Answer the question
In order to leave comments, you need to log in
you should select by user id his data from the profile.json file
.addField("Монеты:",`**${profile[message.author.id].coins}**`)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question