another fix attempt on eval
parent
1ed93f3b5f
commit
e83fc9865d
|
@ -23,7 +23,9 @@ export default class Eval extends Command {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
evaled = await eval(args.join(' ').trim());
|
evaled = await eval(args.join(' ').trim());
|
||||||
if (typeof evaled !== 'string') output = output && inspect(evaled, { depth: 1 });
|
if (typeof evaled === 'object') {
|
||||||
|
evaled = inspect(evaled, { depth: 0 });
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
output = error.stack;
|
output = error.stack;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue