Add sync stdin command

This commit is contained in:
Isaac
2022-09-30 16:05:28 +01:00
parent 10ef6bb617
commit 8e0d9a6a5d
3 changed files with 81 additions and 59 deletions

15
src/stdin/sync.js Normal file
View File

@@ -0,0 +1,15 @@
const { StdinCommand } = require('@eartharoid/dbf');
const sync = require('../lib/sync');
module.exports = class extends StdinCommand {
constructor(client, options) {
super(client, {
...options,
id: 'sync',
});
}
async run() {
await sync(this.client);
}
};