mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-02-24 03:01:28 +02:00
22 lines
437 B
JavaScript
22 lines
437 B
JavaScript
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); // eslint-disable-line no-console
|
|
return true;
|
|
} catch (error) {
|
|
this.client.log.error(error);
|
|
return false;
|
|
}
|
|
}
|
|
}; |