1
0
Fork 0

correct place

refactor/models
Bsian 2020-06-15 22:58:52 +01:00
parent 96b3e55dd1
commit 27cbb57ccf
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ export default class Eval extends Command {
if (!depth || depth < 0) depth = 0; if (!depth || depth < 0) depth = 0;
const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1; const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1;
await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`); await message.channel.createMessage(`depth: ${evalMessage.slice(index).join(' ').trim()}`);
evalString = `eval after depth: ${evalMessage.slice(index).join(' ').trim()}`; evalString = evalMessage.slice(index).join(' ').trim();
} }
await message.channel.createMessage(evalString); await message.channel.createMessage(`eval after depth: ${evalString}`);
if (args[0] === '-a') { if (args[0] === '-a') {
const index = evalMessage.findIndex((v) => v === '-a') + 1; const index = evalMessage.findIndex((v) => v === '-a') + 1;
await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`); await message.channel.createMessage(`async: ${evalMessage.slice(index).join(' ').trim()}`);