Update to @eartharoid/dbf@0.3

This commit is contained in:
Isaac
2022-08-02 17:25:53 +01:00
parent 31635cc7cb
commit aa51cd0554
4 changed files with 7 additions and 7 deletions

20
src/stdin/eval.js Normal file
View File

@@ -0,0 +1,20 @@
const { StdinCommand } = require('@eartharoid/dbf');
module.exports = class extends StdinCommand {
constructor(client, options) {
super(client, {
...options,
id: 'eval',
});
}
async run(input) {
const toEval = input.join(' ');
try {
const res = await eval(toEval);
console.log(res);
} catch (error) {
this.client.log.error(error);
}
}
};