mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 09:21:25 +03:00
Update to @eartharoid/dbf@0.3
This commit is contained in:
20
src/stdin/eval.js
Normal file
20
src/stdin/eval.js
Normal 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);
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user