From d793731bc99381c171f8dae3847cab524bfd00f7 Mon Sep 17 00:00:00 2001 From: Bsian Date: Tue, 17 Dec 2019 01:35:16 +0000 Subject: [PATCH] Fix stuff, test --- src/commands/help.ts | 2 +- src/commands/load.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/help.ts b/src/commands/help.ts index b4ad446..9db8143 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -52,7 +52,7 @@ export default class Help extends Command { let allowedUsers = cmd.permissions && cmd.permissions.users && cmd.permissions.users.map((u) => `<@${u}>`).join(', '); if (allowedUsers) { allowedUsers = `**Users:** ${allowedUsers}`; perms.push(allowedUsers); } const displayedPerms = perms.length ? `\n**Permissions:**\n${perms.join('\n')}` : ''; - const aliases = cmd.aliases.length ? `\n**Aliases:** ${cmd.aliases.map((alias) => `${this.client.config.prefix}${cmd.parentName ? `${cmd.parentName} ` : ''}${alias}`).join(', ')}` : ''; + const aliases = cmd.aliases.length ? `\n**Aliases:** ${cmd.aliases.map((alias) => `${this.client.config.prefix}${cmd.parentName}${alias}`).join(', ')}` : ''; const subcommands = cmd.subcommands.size ? `\n**Subcommands:** ${cmd.subcommands.map((s) => `${cmd.name} ${s.name}`).join(', ')}` : ''; const embed = new RichEmbed(); embed.setTimestamp(); embed.setFooter(`Requested by ${message.author.username}#${message.author.discriminator}`, message.author.avatarURL); diff --git a/src/commands/load.ts b/src/commands/load.ts index 1b952a4..8f55fe5 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -24,7 +24,7 @@ export default class Load extends Command { this.client.config = require(`${corepath}/config.json`); delete require.cache[`${corepath}/config.json`]; } else if (type === 'util') { - const Util = require(`${corepath}/class/Util`); + const Util = require(`${corepath}/class/Util`).default; this.client.util = new Util(this.client); delete require.cache[`${corepath}/class/Util.js`]; } else {