remove messages

merge-requests/4/head
Bsian 2020-06-15 23:06:41 +01:00
parent ee9588c077
commit 37ebe1858b
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 0 additions and 4 deletions

View File

@ -27,16 +27,12 @@ export default class Eval extends Command {
depth = Number(args[0].replace('-d', ''));
if (!depth || depth < 0) depth = 0;
args.shift();
await message.channel.createMessage(`depth: ${args.join(' ').trim()}`);
evalString = args.join(' ').trim();
}
await message.channel.createMessage(`eval after depth: ${evalString}\n${args.join()}`);
if (args[0] === '-a') {
args.shift();
await message.channel.createMessage(`async: ${args.join(' ').trim()}`);
evalString = `(async () => { ${args.join(' ').trim()} })()`;
}
await message.channel.createMessage(`eval after async: ${evalString}\n${args.join()}`);
try {
evaled = await eval(evalString);