1
0
Fork 0
refactor/models
Bsian 2020-06-15 23:00:43 +01:00
parent 27cbb57ccf
commit 02e41276cf
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 2 deletions

View File

@ -30,13 +30,13 @@ export default class Eval extends Command {
await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`);
evalString = evalMessage.slice(index).join(' ').trim();
}
await message.channel.createMessage(`eval after depth: ${evalString}`);
await message.channel.createMessage(`eval after depth: ${evalString}\n${args.join()}`);
if (args[0] === '-a') {
const index = evalMessage.findIndex((v) => v === '-a') + 1;
await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`);
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
}
await message.channel.createMessage(`eval after async: ${evalString}`);
await message.channel.createMessage(`eval after async: ${evalString}\n${args.join()}`);
try {
evaled = await eval(evalString);