eval: hacky args removal

This commit is contained in:
Cynthia Foxwell 2024-08-30 21:19:13 -06:00
parent 43461f6627
commit 3502dfe47a

View file

@ -86,7 +86,7 @@ _eval.callback = async function (msg, line, args, {depth = 0}) {
let errored = false;
let out;
const code = args.join(" ");
const code = line.replace(/--depth=\d+\s+/, "");
try {
out = eval(code);