remove messages
parent
ee9588c077
commit
37ebe1858b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue