merge-requests/4/head
Bsian 2020-04-02 01:15:33 +01:00
parent 1d780c313d
commit 9cff96318a
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 0 additions and 3 deletions

View File

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