forked from engineering/cloudservices
same as before
parent
2019a9e686
commit
765cf135a2
|
@ -29,6 +29,7 @@ export default class Eval extends Command {
|
||||||
const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1;
|
const index = evalMessage.findIndex((v) => v.startsWith('-d')) + 1;
|
||||||
evalString = evalMessage.slice(index).join(' ').trim();
|
evalString = evalMessage.slice(index).join(' ').trim();
|
||||||
}
|
}
|
||||||
|
message.channel.createMessage(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;
|
||||||
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
|
evalString = `(async () => { ${evalMessage.slice(index).join(' ').trim()} })()`;
|
||||||
|
|
Loading…
Reference in New Issue