lang & debug stuff

This commit is contained in:
Erik 2022-07-18 02:10:29 +03:00
parent 459863b7fa
commit dc176fca50
Signed by untrusted user: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
2 changed files with 8 additions and 2 deletions

View File

@ -26,3 +26,6 @@ Manage which commands are enabled within your server.
[SETTING_COMMANDS_NONE]
No commands are disabled.
[C_DISABLE_WARNING]
You disabled a command inside of the **Administration** module. It is dangerous to do so, as it may disable configurability of your server. Note you are unable to disable the `command:enable` and `command:disable` commands.

View File

@ -145,7 +145,10 @@ class CommandHandler extends Observer {
});
try {
this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${invoker.command.name} in ${invoker.guild?.name || 'dms'}`);
let debugstr = invoker.command.name;
if (invoker.subcommandGroup) debugstr += ` ${invoker.subcommandGroup.name}`;
if(invoker.subcommand) debugstr += ` ${invoker.subcommand.name}`;
this.logger.info(`${invoker.user.tag} (${invoker.user.id}) is executing ${debugstr} in ${invoker.guild?.name || 'dms'}`);
response = await invoker.command.execute(invoker, options);
invoker.command.success(now);
} catch (error) {