Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require("discord.js");
- exports.run = async (client, message, args) => {
- const embed = new Discord.RichEmbed()
- .setColor("#ff9900")
- .setTitle("Permissions Error")
- .setDescription("You scrub, what made you think you'd be able to do that?? :face_palm:")
- .setFooter(``, ``)
- if(message.author.id !== 'YOUR ID')) {
- return message.channel.send(embed);
- } else {
- message.delete().catch();
- try {
- await message.channel.send("Restarting & Checking for Updates!! :wave:")
- process.exit()
- } catch(e) {
- message.channel.send(`ERROR: ${e.message}`)
- }
- }
- }
- exports.conf = {
- enabled: true,
- guildOnly: false,
- aliases: [],
- permLevel: 5
- };
- exports.help = {
- name: 'shutdown',
- description: 'Restarts and Updates the bot process',
- usage: 'nb/shutdown',
- group: 'Owner'
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement