From aa51cd05540809d1e1f2bc28eac6eca014d43a77 Mon Sep 17 00:00:00 2001 From: Isaac Date: Tue, 2 Aug 2022 17:25:53 +0100 Subject: [PATCH] Update to @eartharoid/dbf@0.3 --- package.json | 2 +- src/client.js | 2 +- src/listeners/client/ready.js | 4 ++-- src/{commands => }/stdin/eval.js | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/{commands => }/stdin/eval.js (82%) diff --git a/package.json b/package.json index e7fcecd..2baa031 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "node": ">=18.0" }, "dependencies": { - "@eartharoid/dbf": "^0.2.2", + "@eartharoid/dbf": "^0.3.0", "@eartharoid/dtf": "^2.0.1", "@eartharoid/i18n": "^1.0.4", "@fastify/cookie": "^6.0.0", diff --git a/src/client.js b/src/client.js index dc5a47d..bec0b96 100644 --- a/src/client.js +++ b/src/client.js @@ -1,4 +1,4 @@ -const { Client: FrameworkClient } = require('@eartharoid/dbf'); +const { FrameworkClient } = require('@eartharoid/dbf'); const { GatewayIntentBits } = require('discord.js'); const { PrismaClient } = require('@prisma/client'); const Keyv = require('keyv'); diff --git a/src/listeners/client/ready.js b/src/listeners/client/ready.js index 4315f0a..26a436f 100644 --- a/src/listeners/client/ready.js +++ b/src/listeners/client/ready.js @@ -1,11 +1,11 @@ const { Listener } = require('@eartharoid/dbf'); module.exports = class extends Listener { - constructor(client) { + constructor(client, options) { super(client, { + ...options, emitter: client, event: 'ready', - id: 'clientReady', once: true, }); } diff --git a/src/commands/stdin/eval.js b/src/stdin/eval.js similarity index 82% rename from src/commands/stdin/eval.js rename to src/stdin/eval.js index ef394d0..c081510 100644 --- a/src/commands/stdin/eval.js +++ b/src/stdin/eval.js @@ -1,10 +1,10 @@ const { StdinCommand } = require('@eartharoid/dbf'); module.exports = class extends StdinCommand { - constructor(client) { + constructor(client, options) { super(client, { - id: 'stdinEval', - name: 'eval', + ...options, + id: 'eval', }); }