Split commands into subdirectories
* Move command files into directories * Edit relative paths * Update gitignore * Finish support for commands in subdir * Split up getCommandFiles into own function * Add support for subdirs on help command
This commit is contained in:
parent
8993eeaf7a
commit
e7cdd425d1
21 changed files with 55 additions and 35 deletions
17
commands/admin/reload.js
Normal file
17
commands/admin/reload.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const calculateReloaded = require("../../util/calculateReloaded.js");
|
||||
const reloadNetModules = require("../../util/reloadNetModules.js");
|
||||
|
||||
module.exports = {
|
||||
name: 'reload',
|
||||
description: 'Reloads modules.',
|
||||
admin: true,
|
||||
execute({message, client}) {
|
||||
|
||||
let reloadCommands = require("../../util/reloadCommands.js")
|
||||
let beforeSize = client.commands.size;
|
||||
reloadNetModules(client)
|
||||
reloadCommands(client)
|
||||
let sendText = calculateReloaded(beforeSize, client)
|
||||
message.channel.send(sendText)
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue