trying to see where this shit breaks

merge-requests/4/head
Bsian 2020-04-02 01:04:08 +01:00
parent e3d6c108d7
commit 16a6a01e6b
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ export default class Eval extends Command {
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`; evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
} }
message.channel.createMessage(`${evalString}`);
try { try {
evaled = await eval(evalString); evaled = await eval(evalString);
if (typeof evaled !== 'string') { if (typeof evaled !== 'string') {