From d61bb40accebc72f35a70e51babfdc55bd430c5b Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 24 Feb 2026 18:50:18 -0600 Subject: [PATCH] style: Format --- .clangd | 2 +- .github/workflows/mirror.yml | 2 +- package.json | 56 ++++++++++++++++++------------------ src/app.ts | 2 +- src/utils/misc.ts | 3 -- src/utils/tempimages.ts | 2 -- 6 files changed, 31 insertions(+), 36 deletions(-) diff --git a/.clangd b/.clangd index adae8425..c7a47fe9 100644 --- a/.clangd +++ b/.clangd @@ -1,2 +1,2 @@ CompileFlags: - Add: [-std=c++17] \ No newline at end of file + Add: [-std=c++17] diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 7156c2d5..e53bf622 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -3,7 +3,7 @@ name: Repo sync (GitHub -> Codeberg) on: push: branches: - - '**' + - "**" workflow_dispatch: # Manual dispatch schedule: - cron: "0 */8 * * *" diff --git a/package.json b/package.json index ea2dca8b..e000bc1a 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,35 @@ "name": "esmbot", "version": "2025.12.1", "description": "A Discord bot with miscellaneous features", - "exports": "./dist/app.js", + "license": "MIT", + "author": "Essem ", + "repository": { + "type": "git", + "url": "git+https://github.com/esmBot/esmBot.git" + }, "bin": "./dist/app.js", + "binary": { + "napi_versions": [ + 7 + ] + }, "type": "module", - "engines": { - "node": ">=22" + "imports": { + "#cmd-classes/*": { + "node": "./dist/classes/*", + "default": "./src/classes/*" + }, + "#utils/*": { + "node": "./dist/utils/*", + "default": "./src/utils/*" + }, + "#pagination": { + "node": "./dist/pagination/pagination.js", + "default": "./src/pagination/pagination.ts" + }, + "#config/*": "./config/*" }, + "exports": "./dist/app.js", "scripts": { "build": "tsc && pnpm build:natives", "build:no-magick": "tsc && pnpm build:natives:no-magick", @@ -34,12 +57,6 @@ "start-api:debug": "DEBUG=true node dist/api/index.js", "start-api:deno:debug": "DEBUG=true deno -P src/api/index.ts" }, - "author": "Essem ", - "license": "MIT", - "repository": { - "type": "git", - "url": "git+https://github.com/esmBot/esmBot.git" - }, "dependencies": { "@db/sqlite": "jsr:^0.12.0", "better-sqlite3": "^12.6.2", @@ -70,25 +87,8 @@ "@sentry/node": "^10.38.0", "pm2": "^6.0.14" }, - "binary": { - "napi_versions": [ - 7 - ] - }, - "imports": { - "#cmd-classes/*": { - "node": "./dist/classes/*", - "default": "./src/classes/*" - }, - "#utils/*": { - "node": "./dist/utils/*", - "default": "./src/utils/*" - }, - "#pagination": { - "node": "./dist/pagination/pagination.js", - "default": "./src/pagination/pagination.ts" - }, - "#config/*": "./config/*" + "engines": { + "node": ">=22" }, "packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6", "pnpm": { diff --git a/src/app.ts b/src/app.ts index a6ae01ba..b5cbe1a3 100644 --- a/src/app.ts +++ b/src/app.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line import-x/order import process from "node:process"; const [major] = process.versions.node.split(".").map(Number); @@ -234,6 +233,7 @@ if (process.env.PM2_USAGE) { endBroadcast(client); break; case "eval": + // oxlint-disable-next-line no-eval eval(packet.data.message); break; case "serverCounts": diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 04d705f1..510f7bb8 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -1,12 +1,9 @@ import process from "node:process"; import util from "node:util"; - import { type DotenvParseOutput, config } from "dotenv"; import type { AnyChannel, AnyPrivateChannel, Client, CommandInteraction, Message } from "oceanic.js"; - import commandsConfig from "#config/commands.json" with { type: "json" }; import messagesConfig from "#config/messages.json" with { type: "json" }; - import type { DatabasePlugin } from "../database.ts"; import { disconnect, servers } from "./media.ts"; diff --git a/src/utils/tempimages.ts b/src/utils/tempimages.ts index 5d57bb8c..8ef67bb8 100644 --- a/src/utils/tempimages.ts +++ b/src/utils/tempimages.ts @@ -1,6 +1,5 @@ import { lstat, readdir, rm, stat, writeFile } from "node:fs/promises"; import process from "node:process"; - import { type Client, CommandInteraction, @@ -9,7 +8,6 @@ import { type InteractionContent, type Message, } from "oceanic.js"; - import { selectedImages } from "./collections.ts"; import { getString } from "./i18n.ts"; import logger from "./logger.ts"; -- 2.51.2