Skip to content

Commit 139ee6c

Browse files
committed
Use newer imports
1 parent 831db5f commit 139ee6c

126 files changed

Lines changed: 462 additions & 462 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@
5959
"imports": {
6060
"#log": "./src/utils/logger.ts",
6161
"#db": "./src/storage/db/db.ts",
62-
"#*": "./src/*"
62+
"#/*": "./src/*"
6363
},
6464
"trustedDependencies": [
6565
"@biomejs/biome",
6666
"lefthook"
6767
],
6868
"engines": {
69-
"node": ">=25.6.0"
69+
"node": ">=25.6.1"
7070
}
7171
}

src/app.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
import { GatewayIntentBits, Partials, Client } from "discord.js";
22
import * as sentry from "@sentry/node";
33

4-
import { readConfig, databasePath, args } from "#service/config.ts";
4+
import { readConfig, databasePath, args } from "#/service/config.ts";
55
import log from "#log";
66

77
import { Temporal } from "@js-temporal/polyfill";
8-
import "#polyfills.ts";
8+
import "#/polyfills.ts";
99

10-
import * as kysely from "#storage/db/db.ts";
10+
import * as kysely from "#/storage/db/db.ts";
1111

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";
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";
1616

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";
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";
2121

2222
import {
2323
handleInteractionEvent,
2424
loadCommands,
2525
messageCommandHandler,
2626
registerAllApplicationCommandsAsGuildCommands,
27-
} from "#handler/commandHandler.ts";
28-
import * as guildMemberHandler from "#handler/guildMemberHandler.ts";
29-
import deleteThreadMessagesHandler from "#handler/messageCreate/deleteThreadMessagesHandler.ts";
30-
import { handlePresenceUpdate } from "#handler/presenceHandler.ts";
31-
import { createBotContext, type BotContext } from "#context.ts";
32-
import { ehreReactionHandler } from "#commands/ehre.ts";
33-
import * as terminal from "#utils/terminal.ts";
34-
import * as dateUtils from "#utils/dateUtils.ts";
35-
import * as cronService from "#service/cron.ts";
27+
} from "#/handler/commandHandler.ts";
28+
import * as guildMemberHandler from "#/handler/guildMemberHandler.ts";
29+
import deleteThreadMessagesHandler from "#/handler/messageCreate/deleteThreadMessagesHandler.ts";
30+
import { handlePresenceUpdate } from "#/handler/presenceHandler.ts";
31+
import { createBotContext, type BotContext } from "#/context.ts";
32+
import { ehreReactionHandler } from "#/commands/ehre.ts";
33+
import * as terminal from "#/utils/terminal.ts";
34+
import * as dateUtils from "#/utils/dateUtils.ts";
35+
import * as cronService from "#/service/cron.ts";
3636

3737
const env = process.env;
3838

src/commands/aoc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
} from "discord.js";
99
import type * as discord from "discord.js";
1010

11-
import type { BotContext } from "#context.ts";
12-
import type { ApplicationCommand } from "#commands/command.ts";
11+
import type { BotContext } from "#/context.ts";
12+
import type { ApplicationCommand } from "#/commands/command.ts";
1313

1414
import log from "#log";
1515

src/commands/autoEhre.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { ProcessableMessage } from "#service/command.ts";
2-
import type { SpecialCommand } from "#commands/command.ts";
1+
import type { ProcessableMessage } from "#/service/command.ts";
2+
import type { SpecialCommand } from "#/commands/command.ts";
33

4-
import * as ehreService from "#service/ehre.ts";
4+
import * as ehreService from "#/service/ehre.ts";
55

66
export default class AutoEhreCommand implements SpecialCommand {
77
name = "AutoEhre";

src/commands/banlist.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import {
66
time,
77
} from "discord.js";
88

9-
import type { ApplicationCommand } from "#commands/command.ts";
10-
import type { BotContext } from "#context.ts";
11-
import type { Ban } from "#storage/db/model.ts";
9+
import type { ApplicationCommand } from "#/commands/command.ts";
10+
import type { BotContext } from "#/context.ts";
11+
import type { Ban } from "#/storage/db/model.ts";
1212

13-
import * as banService from "#service/ban.ts";
13+
import * as banService from "#/service/ban.ts";
1414
import log from "#log";
1515

1616
export default class BanListCommand implements ApplicationCommand {

src/commands/bonk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import * as fs from "node:fs/promises";
33
import { createCanvas, loadImage } from "@napi-rs/canvas";
44
import type { GuildMember } from "discord.js";
55

6-
import type { MessageCommand } from "#commands/command.ts";
7-
import type { ProcessableMessage } from "#service/command.ts";
6+
import type { MessageCommand } from "#/commands/command.ts";
7+
import type { ProcessableMessage } from "#/service/command.ts";
88
import log from "#log";
99

1010
const createBonkMeme = async (author: GuildMember): Promise<Buffer> => {

src/commands/boobs.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { time, TimestampStyles, type User } from "discord.js";
22

3-
import type { ProcessableMessage } from "#service/command.ts";
4-
import type { MessageCommand } from "#commands/command.ts";
5-
import type { Boob } from "#storage/db/model.ts";
6-
import * as boob from "#storage/boob.ts";
3+
import type { ProcessableMessage } from "#/service/command.ts";
4+
import type { MessageCommand } from "#/commands/command.ts";
5+
import type { Boob } from "#/storage/db/model.ts";
6+
import * as boob from "#/storage/boob.ts";
77
import log from "#log";
8-
import { randomEntry } from "#service/random.ts";
8+
import { randomEntry } from "#/service/random.ts";
99

1010
interface Booba {
1111
description: string;

src/commands/clap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import {
88
SlashCommandStringOption,
99
} from "discord.js";
1010

11-
import type { BotContext } from "#context.ts";
12-
import type { ProcessableMessage } from "#service/command.ts";
13-
import type { ApplicationCommand, MessageCommand } from "#commands/command.ts";
11+
import type { BotContext } from "#/context.ts";
12+
import type { ProcessableMessage } from "#/service/command.ts";
13+
import type { ApplicationCommand, MessageCommand } from "#/commands/command.ts";
1414

1515
const clapify = (str: string): string => `${str.split(/\s+/).join(" :clap: ")} :clap:`;
1616

src/commands/command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type {
66
SlashCommandBuilder,
77
} from "discord.js";
88

9-
import type { ProcessableMessage } from "#service/command.ts";
10-
import type { BotContext } from "#context.ts";
9+
import type { ProcessableMessage } from "#/service/command.ts";
10+
import type { BotContext } from "#/context.ts";
1111

1212
export type Command = ApplicationCommand | AutocompleteCommand | MessageCommand | SpecialCommand;
1313

0 commit comments

Comments
 (0)