Fix Hound Violations
This commit is contained in:
parent
de2d589504
commit
a8aabf99d8
1 changed files with 3 additions and 3 deletions
|
@ -11,15 +11,15 @@ class util {
|
||||||
|
|
||||||
// Load a command and send the arguments with it
|
// Load a command and send the arguments with it
|
||||||
loadCommand(name, args, message) {
|
loadCommand(name, args, message) {
|
||||||
// Loop through all folders set in config
|
// Loop through all folders set in config
|
||||||
// c = command folder index
|
// c = command folder index
|
||||||
for (let c = 0; c < this._client.config.commands.length; c++) {
|
for (let c = 0; c < this._client.config.commands.length; c++) {
|
||||||
// Get the current folder to check
|
// Get the current folder to check
|
||||||
let folder = this._client.config.commands[c];
|
let folder = this._client.config.commands[c];
|
||||||
|
|
||||||
// See if the folder being checked has the command being sent
|
// See if the folder being checked has the command being sent
|
||||||
stat(`${process.cwd()}/${folder}/${name}.js`, err => {
|
stat(`${process.cwd()}/${folder}/${name}.js`, err => {
|
||||||
// If no error, attempt to run the command
|
// If no error, attempt to run the command
|
||||||
if (err == null) {
|
if (err == null) {
|
||||||
// Require the command file, now that we know it exists and initialise it
|
// Require the command file, now that we know it exists and initialise it
|
||||||
let commandFile = require(`${process.cwd()}/${folder}/${name}.js`);
|
let commandFile = require(`${process.cwd()}/${folder}/${name}.js`);
|
||||||
|
|
Reference in a new issue