Skip to content

Commit

Permalink
V2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LordAlex2015 committed Feb 23, 2021
1 parent be5e251 commit 5f1d1f9
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
28 changes: 28 additions & 0 deletions commands/utils/reload-command.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict';

const Command = require("../../structure/Command.js");

class ReloadCommand extends Command {
constructor() {
super({
name: 'reload-cmd',
category: 'utils',
description: 'reload-cmd Commands',
usage: 'reload-cmd <command-file-name-without-.js>',
example: ['reload-cmd help','reload-cmd ping'],
perms: "owner"
});
}

async run(client, message, args) {
if(!args[1]) {
message.channel.send("> No command specified!");
} else {
client.reloadCommand(args[1]).then(async res => {
await message.channel.send(res);
});
}
}
}

module.exports = new ReloadCommand;
28 changes: 28 additions & 0 deletions commands/utils/reload-event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'use strict';

const Command = require("../../structure/Command.js");

class ReloadEvent extends Command {
constructor() {
super({
name: 'reload-event',
category: 'utils',
description: 'Reload Events',
usage: 'reload <event-file-name-without-.js>',
example: ['reload-event message','reload-event ready'],
perms: "owner"
});
}

async run(client, message, args) {
if(!args[1]) {
message.channel.send("> No event specified!");
} else {
client.reloadEvent(args[1]).then(async res => {
await message.channel.send(res);
});
}
}
}

module.exports = new ReloadEvent;

0 comments on commit 5f1d1f9

Please sign in to comment.