Fix.
parent
1d780c313d
commit
9cff96318a
|
@ -31,12 +31,9 @@ export default class Eval extends Command {
|
|||
}
|
||||
if (args[0] === '-a') {
|
||||
const index = evalMessage.findIndex((v) => v === '-a') + 1;
|
||||
message.channel.createMessage(`${index}`);
|
||||
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
|
||||
}
|
||||
|
||||
message.channel.createMessage(`${evalString}\n${args[0]}\n${args[1]}`);
|
||||
|
||||
try {
|
||||
evaled = await eval(evalString);
|
||||
if (typeof evaled !== 'string') {
|
||||
|
|
Loading…
Reference in New Issue