diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-29 10:06:01 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-06-29 10:06:01 -0400 |
commit | b6555ffff0d1c6351ddf0ad8aa65859e07dc5127 (patch) | |
tree | 279a1493f69554e905ebe4c1cd5e56f0d88b9443 /src/commands/dev/eval.ts | |
parent | dd3451e96cbf9d34589f00eb3b41dc9b958fd5f4 (diff) | |
download | tanzanite-b6555ffff0d1c6351ddf0ad8aa65859e07dc5127.tar.gz tanzanite-b6555ffff0d1c6351ddf0ad8aa65859e07dc5127.tar.bz2 tanzanite-b6555ffff0d1c6351ddf0ad8aa65859e07dc5127.zip |
Revert Typescript Version upgrade -> it breaks sequelize
Diffstat (limited to 'src/commands/dev/eval.ts')
-rw-r--r-- | src/commands/dev/eval.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts index 7f6a713..a1c2d87 100644 --- a/src/commands/dev/eval.ts +++ b/src/commands/dev/eval.ts @@ -135,12 +135,11 @@ export default class EvalCommand extends BushCommand { show_proto: boolean; } ): Promise<unknown> { - if (!message.author.isOwner()) - return await message.util.reply(`${this.client.util.emojis.error} Only my developers can run this command.`); + // if (!message.author.isOwner()) + // return await message.util.reply(`${this.client.util.emojis.error} Only my developers can run this command.`); if (message.util.isSlash) { await (message as BushSlashMessage).interaction.defer({ ephemeral: args.silent }); } - const code: { js?: string | null; ts?: string | null; lang?: 'js' | 'ts' } = {}; args.code = args.code.replace(/[“”]/g, '"'); args.code = args.code.replace(/```/g, ''); @@ -193,6 +192,7 @@ export default class EvalCommand extends BushCommand { } else { output = eval(code.js); output = await output; + this.client.console.debug(output); } let proto, outputProto; if (args.show_proto) { |