1
0
Fork 0

Check eval string

refactor/models
Bsian 2020-06-15 22:32:32 +01:00
parent 0f93d42c2c
commit 2019a9e686
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ export default class Eval extends Command {
const index = evalMessage.findIndex((v) => v === '-a') + 1;
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
}
message.channel.createMessage(evalString);
try {
evaled = await eval(evalString);