same as before

merge-requests/4/head
Bsian 2020-06-15 22:36:23 +01:00
parent 2019a9e686
commit 765cf135a2
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ export default class Eval extends Command {
const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1;
evalString = evalMessage.slice(index).join(' ').trim();
}
message.channel.createMessage(evalString);
if (args[0] === '-a') {
const index = evalMessage.findIndex((v) => v === '-a') + 1;
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;