Advertisement
Guest User

daily.js

a guest
Jun 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. onst Discord = require("discord.js");
  2. const fs = require("fs")
  3. const coins = require("../coins");
  4. module.exports.run = async(bot,message,args) => {
  5.   message.delete();
  6.   let amount = 25
  7.   let cooldown = new Set();
  8.   let cdseconds = 3600000;
  9.  
  10.  
  11.  
  12.   if(message.member.hasPermission("KICK_MEMBERS")){
  13.     let amount = 500
  14.   }
  15.  
  16.   coins[message.author.id].coins += amount
  17.   const embed = new Discord.RichEmbed()
  18.   .setColor("RANDOM")
  19.   .setTitle("**Daily Rewards Successful**")
  20.   .setDescription(`${amount} Coins have been add to your balance`)
  21.   embed.setFooter("Avaiable in 24 hrs",message.author.displayAvatarURL);
  22.   message.channel.send(embed);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement