forked from engineering/cloudservices
Check eval string
parent
0f93d42c2c
commit
2019a9e686
|
@ -33,6 +33,7 @@ export default class Eval extends Command {
|
||||||
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()} })()`;
|
||||||
}
|
}
|
||||||
|
message.channel.createMessage(evalString);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
evaled = await eval(evalString);
|
evaled = await eval(evalString);
|
||||||
|
|
Loading…
Reference in New Issue