module.exports.run = async (bot, message, args) => {
const talkedRecently = new Set();
if (talkedRecently.has(message.author.id)) {
message.channel.send("Wait 1 minute before getting typing this again. - " + message.author);
} else {
message.reply('test')
talkedRecently.add(message.author.id);
setTimeout(() => {
talkedRecently.delete(message.author.id);
}, 60000);
}
}
module.exports.run = async (bot, message, args) => {
const talkedRecently = new Set();
if (talkedRecently.has(message.author.id)) {
message.channel.send("Wait 1 minute before getting typing this again. - " + message.author);
} else {
const profile = require('../profile.json');
const bonus = 50
profile[message.author.id].coins = profile[message.author.id].coins + bonus
await message.reply(` вы получили бонус ${bonus} Coins!`);
talkedRecently.add(message.author.id);
setTimeout(() => {
talkedRecently.delete(message.author.id);
}, 60000);
}
}
Изначально было 100 Coins.