From 8f70e1567cf5566da921ae74a93c72283fc6366a Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Thu, 31 Jul 2025 14:56:58 +0100 Subject: [PATCH] fix ping --- db.ts | 1 - index.ts | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/db.ts b/db.ts index 052a3ee..90b98a8 100644 --- a/db.ts +++ b/db.ts @@ -1,4 +1,3 @@ -// db.ts import { sql as pgsql } from "bun"; import { Database as SQLiteDB } from "bun:sqlite"; diff --git a/index.ts b/index.ts index 540a500..6b8f7b7 100644 --- a/index.ts +++ b/index.ts @@ -11,7 +11,11 @@ client.once(Events.ClientReady, (c) => { client.on(Events.MessageCreate, async (message) => { if (message.author.bot) return; - if (client.user && message.mentions.has(client.user)) { + if ( + client.user && + message.mentions.has(client.user) && + !message.mentions.everyone + ) { let files = await db.all`SELECT * FROM files WHERE owner = ${message.author.id}`; let totalSize = files.reduce((a, b) => a + b.size, 0);