diff --git a/apps/bot/src/client.ts b/apps/bot/src/client.ts index 8a211d0..8a38572 100644 --- a/apps/bot/src/client.ts +++ b/apps/bot/src/client.ts @@ -1,11 +1,11 @@ import "@sapphire/plugin-logger/register"; import "@sapphire/plugin-subcommands/register"; -import { container, SapphireClient } from "@sapphire/framework"; -import { getRootData } from "@sapphire/pieces"; +import { join } from "node:path"; import { PrismaClient } from "@mist/database"; +import { SapphireClient, container } from "@sapphire/framework"; +import { getRootData } from "@sapphire/pieces"; import { IntentsBitField } from "discord.js"; -import { join } from "node:path"; declare module "@sapphire/pieces" { interface Container { diff --git a/apps/bot/src/env.ts b/apps/bot/src/env.ts index 2d634b8..8619746 100644 --- a/apps/bot/src/env.ts +++ b/apps/bot/src/env.ts @@ -1,7 +1,7 @@ +import { container } from "@sapphire/pieces"; import * as dotenv from "dotenv"; import { z } from "zod"; import { coerceBooleanSchema, coerceableTrue } from "./utils/schemas.js"; -import { container } from "@sapphire/pieces"; dotenv.config({ path: [".env", "../../.env"] }); diff --git a/apps/bot/src/main.ts b/apps/bot/src/main.ts index 2eeb84f..1382741 100644 --- a/apps/bot/src/main.ts +++ b/apps/bot/src/main.ts @@ -1,6 +1,6 @@ -import { env } from "./env.js"; -import { MistSapphireClient } from "./client.js"; import { ApplicationCommandRegistries } from "@sapphire/framework"; +import { MistSapphireClient } from "./client.js"; +import { env } from "./env.js"; ApplicationCommandRegistries.setDefaultGuildIds(["889120629763235850"]); diff --git a/apps/bot/src/modules/boards/commands/board-debug.ts b/apps/bot/src/modules/boards/commands/board-debug.ts index 7ec8b9e..51fce75 100644 --- a/apps/bot/src/modules/boards/commands/board-debug.ts +++ b/apps/bot/src/modules/boards/commands/board-debug.ts @@ -1,6 +1,6 @@ import { Command, CommandOptionsRunTypeEnum } from "@sapphire/framework"; -import { TagBitsetOption, getBoardChannelConfig } from "../functions/config.js"; import { PermissionFlagsBits } from "discord.js"; +import { TagBitsetOption, getBoardChannelConfig } from "../functions/config.js"; export class BoardDebugCommand extends Command { public constructor(context: Command.LoaderContext, options: Command.Options) { diff --git a/apps/bot/src/modules/boards/listeners/thread-update.ts b/apps/bot/src/modules/boards/listeners/thread-update.ts index bc3da13..11e34bb 100644 --- a/apps/bot/src/modules/boards/listeners/thread-update.ts +++ b/apps/bot/src/modules/boards/listeners/thread-update.ts @@ -1,8 +1,8 @@ +import { BoardTagConfig } from "@mist/database"; import { Listener } from "@sapphire/framework"; import { type AnyThreadChannel, ChannelType } from "discord.js"; import { assert } from "../../../utils/assert.js"; import { TagBitsetOption, getBoardChannelConfig } from "../functions/config.js"; -import { BoardTagConfig } from "@mist/database"; export class BoardsThreadUpdateListener extends Listener<"threadUpdate"> { public constructor( diff --git a/apps/bot/src/modules/managed-roles/commands/managed-role.ts b/apps/bot/src/modules/managed-roles/commands/managed-role.ts index f079a8c..394c6cf 100644 --- a/apps/bot/src/modules/managed-roles/commands/managed-role.ts +++ b/apps/bot/src/modules/managed-roles/commands/managed-role.ts @@ -1,8 +1,8 @@ import { Command, CommandOptionsRunTypeEnum, none } from "@sapphire/framework"; import { PermissionFlagsBits } from "discord.js"; -import { getManagedRolesConfig } from "../functions/config.js"; import { assert } from "../../../utils/assert.js"; import { localizedReply } from "../../../utils/localized-reply.js"; +import { getManagedRolesConfig } from "../functions/config.js"; /** * This doesn't extend Subcommand because most logic is shared. diff --git a/apps/bot/src/modules/tickets/commands/ticket.ts b/apps/bot/src/modules/tickets/commands/ticket.ts index f00d79d..a7ee184 100644 --- a/apps/bot/src/modules/tickets/commands/ticket.ts +++ b/apps/bot/src/modules/tickets/commands/ticket.ts @@ -2,8 +2,8 @@ import { type Command, CommandOptionsRunTypeEnum } from "@sapphire/framework"; import { Subcommand } from "@sapphire/plugin-subcommands"; import type { GuildChannel, Options, TextChannel } from "discord.js"; import { assert } from "../../../utils/assert.js"; -import { getTicketsConfig } from "../functions/config.js"; import { localizedReply } from "../../../utils/localized-reply.js"; +import { getTicketsConfig } from "../functions/config.js"; export class TicketCommand extends Subcommand { constructor(context: Subcommand.LoaderContext, options: Options) {