Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Fix Reload Command
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Ray committed Sep 30, 2018
1 parent cb450e1 commit 285c044
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions commands/reload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exports.run = (client, message, args, level) => {
if (!args || args.length < 1) return message.reply("please provide a package to reload.");
exports.run = async (client, message, args) => {
if (!args || args.length < 1) return message.reply('please provide a package to reload.');

let response = await client.unloadCommand(args[0]); //eslint-disable-line
if (response) return message.reply(`Error Unloading: ${response}`);
Expand All @@ -8,18 +8,18 @@ exports.run = (client, message, args, level) => {
if (response) return message.reply(`Error Loading: ${response}`);

message.reply(`the package \`${args[0]}\` has been reloaded.`);
}
};

exports.conf = {
enabled: true,
guildOnly: false,
aliases: ["r"],
permLevel: "Systems Administrator"
aliases: ['r'],
permLevel: 'Systems Administrator'
};

exports.help = {
name: "reload",
category: "System",
description: "Reloads a command that\"s been modified.",
usage: "reload [command]"
name: 'reload',
category: 'System',
description: 'Reloads a command that"s been modified.',
usage: 'reload [command]'
};

0 comments on commit 285c044

Please sign in to comment.