mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 09:41:27 +03:00
First command
This commit is contained in:
20
src/commands/stdin/eval.js
Normal file
20
src/commands/stdin/eval.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const { StdinCommand } = require('@eartharoid/dbf');
|
||||
|
||||
module.exports = class extends StdinCommand {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
id: 'stdinEval',
|
||||
name: '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