Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  /* let coinAmt = Math.floor(Math.random() * 15) + 1;
  2.     let baseAmt = Math.floor(Math.random() * 1) + 1;
  3.     console.log (`${coinAmt} ; ${baseAmt}`);
  4.  
  5.     if(coinAmt === baseAmt ) {
  6.         coins[message.author.id] = {
  7.             coins: coins[message.author.id].coins + coinAmt
  8.         };
  9.     fs.writeFile("./coins.json", JSON.stringify(coins), (err) => {
  10.         if (err) console.log(err)
  11.     });
  12.    
  13.     let coinEmbed = new Discord.RichEmbed()
  14.     .setAuthor(message.author.username)
  15.     .setColor("#0000FF")
  16.     .addField(`${coinAmt} coins Added!`);  
  17.  
  18.      message.channel.send(`${coinAmt} coins Added!`).then(msg => {msg.delete(1000)});
  19.        
  20.  
  21.     }  */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement