|
1 | 1 | import { GatewayIntentBits, Partials, Client } from "discord.js"; |
2 | 2 | import * as sentry from "@sentry/node"; |
3 | 3 |
|
4 | | -import { readConfig, databasePath, args } from "@/service/config.js"; |
5 | | -import log from "@log"; |
| 4 | +import { readConfig, databasePath, args } from "#service/config.ts"; |
| 5 | +import log from "#log"; |
6 | 6 |
|
7 | 7 | import { Temporal } from "@js-temporal/polyfill"; |
8 | | -import "@/polyfills.js"; |
| 8 | +import "#polyfills.ts"; |
9 | 9 |
|
10 | | -import * as kysely from "@/storage/db/db.js"; |
| 10 | +import * as kysely from "#storage/db/db.ts"; |
11 | 11 |
|
12 | | -import type { ReactionHandler } from "@/handler/ReactionHandler.js"; |
13 | | -import messageDeleteHandler from "@/handler/messageDeleteHandler.js"; |
14 | | -import { woisVoteReactionHandler } from "@/commands/woisvote.js"; |
15 | | -import * as voiceStateService from "@/service/voiceState.js"; |
| 12 | +import type { ReactionHandler } from "#handler/ReactionHandler.ts"; |
| 13 | +import messageDeleteHandler from "#handler/messageDeleteHandler.ts"; |
| 14 | +import { woisVoteReactionHandler } from "#commands/woisvote.ts"; |
| 15 | +import * as voiceStateService from "#service/voiceState.ts"; |
16 | 16 |
|
17 | | -import roleAssignerHandler from "@/handler/reaction/roleAssignerHandler.js"; |
18 | | -import pollReactionHandler from "@/handler/reaction/pollReactionHandler.js"; |
19 | | -import logEmotesReactionHandler from "@/handler/reaction/logEmotesReactionHandler.js"; |
20 | | -import quoteReactionHandler from "@/handler/reaction/quoteHandler.js"; |
| 17 | +import roleAssignerHandler from "#handler/reaction/roleAssignerHandler.ts"; |
| 18 | +import pollReactionHandler from "#handler/reaction/pollReactionHandler.ts"; |
| 19 | +import logEmotesReactionHandler from "#handler/reaction/logEmotesReactionHandler.ts"; |
| 20 | +import quoteReactionHandler from "#handler/reaction/quoteHandler.ts"; |
21 | 21 |
|
22 | 22 | import { |
23 | 23 | handleInteractionEvent, |
24 | 24 | loadCommands, |
25 | 25 | messageCommandHandler, |
26 | 26 | registerAllApplicationCommandsAsGuildCommands, |
27 | | -} from "@/handler/commandHandler.js"; |
28 | | -import * as guildMemberHandler from "@/handler/guildMemberHandler.js"; |
29 | | -import deleteThreadMessagesHandler from "@/handler/messageCreate/deleteThreadMessagesHandler.js"; |
30 | | -import { createBotContext, type BotContext } from "@/context.js"; |
31 | | -import { ehreReactionHandler } from "@/commands/ehre.js"; |
32 | | -import * as terminal from "@/utils/terminal.js"; |
33 | | -import * as cronService from "@/service/cron.js"; |
34 | | -import { handlePresenceUpdate } from "./handler/presenceHandler.js"; |
| 27 | +} from "#handler/commandHandler.ts"; |
| 28 | +import * as guildMemberHandler from "#handler/guildMemberHandler.ts"; |
| 29 | +import deleteThreadMessagesHandler from "#handler/messageCreate/deleteThreadMessagesHandler.ts"; |
| 30 | +import { createBotContext, type BotContext } from "#context.ts"; |
| 31 | +import { ehreReactionHandler } from "#commands/ehre.ts"; |
| 32 | +import * as terminal from "#utils/terminal.ts"; |
| 33 | +import * as cronService from "#service/cron.ts"; |
| 34 | +import { handlePresenceUpdate } from "./handler/presenceHandler.ts"; |
35 | 35 |
|
36 | 36 | const env = process.env; |
37 | 37 |
|
@@ -130,8 +130,8 @@ process.once("SIGTERM", signal => { |
130 | 130 | process.exit(1); |
131 | 131 | }); |
132 | 132 | process.once("exit", code => { |
133 | | - client.destroy(); |
134 | | - kysely.disconnectFromDb(); |
| 133 | + const _ = client.destroy(); |
| 134 | + const __ = kysely.disconnectFromDb(); |
135 | 135 | log.warn(`Process exited with code: ${code}`); |
136 | 136 | }); |
137 | 137 |
|
|
0 commit comments