aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-19 17:42:29 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-19 17:42:29 -0400
commit0fc87a141609fe7d6a80931b73f59c872b0bd44f (patch)
tree715d65c8801de4376845c01edfe01abedaabbc91 /src/commands/dev
parentb023e057083f002418d2a685dbfb17faa624b6b1 (diff)
downloadtanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.gz
tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.tar.bz2
tanzanite-0fc87a141609fe7d6a80931b73f59c872b0bd44f.zip
change some stuff
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/eval.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index 436268e..0de0aa1 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -1,5 +1,3 @@
-/* eslint-disable @typescript-eslint/no-var-requires */
-/* eslint-disable @typescript-eslint/no-unused-vars */
import { BushCommand, BushMessage, BushSlashMessage } from '@lib';
import { exec } from 'child_process';
import { Constants } from 'discord-akairo';
@@ -12,7 +10,6 @@ const clean = (text) => {
return Util.cleanCodeBlockContent(text);
} else return text;
};
-const sh = promisify(exec);
export default class EvalCommand extends BushCommand {
public constructor() {
@@ -173,7 +170,9 @@ export default class EvalCommand extends BushCommand {
try {
let output;
- const me = message.member,
+ /* eslint-disable @typescript-eslint/no-unused-vars */
+ const sh = promisify(exec),
+ me = message.member,
member = message.member,
bot = this.client,
guild = message.guild,
@@ -193,12 +192,15 @@ export default class EvalCommand extends BushCommand {
MessageAttachment,
MessageButton,
MessageCollector,
- MessageComponentInteractionCollector,
+ InteractionCollector,
MessageEmbed,
MessageSelectMenu,
ReactionCollector,
- Util
- } = require('discord.js'); // I would use import here but esbuild doesn't like that
+ Util,
+ Collection
+ } = await import('discord.js'),
+ { Canvas } = await import('node-canvas');
+ /* eslint-enable @typescript-eslint/no-unused-vars */
if (code[code.lang].replace(/ /g, '').includes('9+10' || '10+9')) {
output = 21;
} else {