From 58223f30e06e78c0c132730cc3613b7ca2faba03 Mon Sep 17 00:00:00 2001 From: hwangsihu Date: Fri, 19 Jul 2024 00:52:03 +0900 Subject: [PATCH] Updated packages and code formatting --- package.json | 2 +- src/config.ts | 2 +- src/structures/Context.ts | 2 +- src/structures/I18n.ts | 2 +- src/structures/Lavamusic.ts | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 708fc2d48..08d383250 100644 --- a/package.json +++ b/package.json @@ -36,8 +36,8 @@ "homepage": "https://github.com/appujet/lavamusic#readme", "devDependencies": { "@biomejs/biome": "^1.8.3", - "@types/node": "^20.14.11", "@types/i18n": "^0.13.12", + "@types/node": "^20.14.11", "@types/signale": "^1.4.7", "prisma": "^5.17.0", "typescript": "^5.5.3" diff --git a/src/config.ts b/src/config.ts index cbe27ba54..dd713f398 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ import dotenv from "dotenv"; -import { SearchEngine, Language } from "./types.js"; +import { Language, SearchEngine } from "./types.js"; dotenv.config(); const parseBoolean = (value?: string): boolean => value?.trim().toLowerCase() === "true"; diff --git a/src/structures/Context.ts b/src/structures/Context.ts index 7f0ac68f6..3b7137a1e 100644 --- a/src/structures/Context.ts +++ b/src/structures/Context.ts @@ -17,8 +17,8 @@ import { type TextChannel, type User, } from "discord.js"; -import type { Lavamusic } from "./index.js"; import { T } from "./I18n.js"; +import type { Lavamusic } from "./index.js"; export default class Context { public ctx: CommandInteraction | Message; diff --git a/src/structures/I18n.ts b/src/structures/I18n.ts index ab6f5ab3f..eddd7ed1f 100644 --- a/src/structures/I18n.ts +++ b/src/structures/I18n.ts @@ -1,8 +1,8 @@ import i18n from "i18n"; -import Logger from "./Logger.js"; import { Locale } from "discord.js"; import { Language } from "../types.js"; +import Logger from "./Logger.js"; const logger = new Logger(); diff --git a/src/structures/Lavamusic.ts b/src/structures/Lavamusic.ts index 62dfb8349..3f7caafb4 100644 --- a/src/structures/Lavamusic.ts +++ b/src/structures/Lavamusic.ts @@ -13,14 +13,14 @@ import { type RESTPostAPIChatInputApplicationCommandsJSONBody, Routes, } from "discord.js"; +import { Locale } from "discord.js"; import config from "../config.js"; import ServerData from "../database/server.js"; import loadPlugins from "../plugin/index.js"; import { Utils } from "../utils/Utils.js"; +import { T, i18n, initI18n, localization } from "./I18n.js"; import Logger from "./Logger.js"; import { type Command, Queue, ShoukakuClient } from "./index.js"; -import { initI18n, T, i18n, localization } from "./I18n.js"; -import { Locale } from "discord.js"; const __dirname = path.dirname(fileURLToPath(import.meta.url));