-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be5e251
commit 5f1d1f9
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |