Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* let coinAmt = Math.floor(Math.random() * 15) + 1;
- let baseAmt = Math.floor(Math.random() * 1) + 1;
- console.log (`${coinAmt} ; ${baseAmt}`);
- if(coinAmt === baseAmt ) {
- coins[message.author.id] = {
- coins: coins[message.author.id].coins + coinAmt
- };
- fs.writeFile("./coins.json", JSON.stringify(coins), (err) => {
- if (err) console.log(err)
- });
- let coinEmbed = new Discord.RichEmbed()
- .setAuthor(message.author.username)
- .setColor("#0000FF")
- .addField(`${coinAmt} coins Added!`);
- message.channel.send(`${coinAmt} coins Added!`).then(msg => {msg.delete(1000)});
- } */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement