aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev/eval.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-18 12:56:24 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-07-18 12:56:24 -0400
commita1c58b434c44b1acca0880306663023479789d30 (patch)
tree6b2a411e07cee3f58f86094ce420b85842ffb2fb /src/commands/dev/eval.ts
parent6268d144a555bd33bcfd28bc4f924f35978f4209 (diff)
parent5ae6066371cc9b4c710c9ab8181a9af17591264f (diff)
downloadtanzanite-a1c58b434c44b1acca0880306663023479789d30.tar.gz
tanzanite-a1c58b434c44b1acca0880306663023479789d30.tar.bz2
tanzanite-a1c58b434c44b1acca0880306663023479789d30.zip
Merge branch 'rewrite' of https://github.com/NotEnoughUpdates/bush-bot into rewrite
Diffstat (limited to 'src/commands/dev/eval.ts')
-rw-r--r--src/commands/dev/eval.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/dev/eval.ts b/src/commands/dev/eval.ts
index 449b8a2..38e142e 100644
--- a/src/commands/dev/eval.ts
+++ b/src/commands/dev/eval.ts
@@ -142,7 +142,7 @@ export default class EvalCommand extends BushCommand {
const code: { js?: string | null; ts?: string | null; lang?: 'js' | 'ts' } = {};
args.code = args.code.replace(/[“”]/g, '"');
args.code = args.code.replace(/```*(?:js|ts)?/g, '');
- if (args.typescript ) {
+ if (args.typescript) {
code.ts = args.code;
code.js = transpile(args.code);
code.lang = 'ts';