Facebook
From LightningYT, 4 Days ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 32
  1. const Discord = require("discord.js")
  2. const fs = require("fs");
  3.  
  4. module.exports.run = async (bot, message, args) => {
  5.   if(message.author.id !== '323940682857185321') return message.channel.send('Not Enough Permissions!');
  6.  
  7.   try{
  8.     delete require.cache[require.resolve(`./${args[0]}.js`)];
  9.   let Embed = new Discord.RichEmbed()
  10.   .setTitle("Reloading...")
  11.   .setDescription(`${args[0]}.js successfully reloaded!`)
  12.  
  13.      }catch(e){
  14.      return message.channel.send(`${args[0]} Does Not Exist!`)
  15.      
  16.      }
  17.     return message.channel.send(Embed);
  18.  
  19. };
  20.  
  21. module.exports.help = {
  22. name: "reload"
  23. }