Skip to content

Commit

Permalink
Add path alias for src
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jul 28, 2024
1 parent d938f9d commit f17b820
Show file tree
Hide file tree
Showing 62 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion src/commands/aoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "discord.js";
import type * as discord from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand } from "./command.js";

import log from "@log";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/banlist.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type CacheType, type CommandInteraction, TimestampStyles, time } from "discord.js";
import { SlashCommandBuilder } from "discord.js";
import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as banService from "../storage/ban.js";
import type { Ban } from "../storage/db/model.js";
import log from "@log";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/clap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SlashCommandStringOption,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";
import type { ApplicationCommand, MessageCommand } from "./command.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
} from "discord.js";

import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

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

Expand Down
2 changes: 1 addition & 1 deletion src/commands/dadJoke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { cleanContent } from "discord.js";

import type { ProcessableMessage } from "../service/command.js";
import type { SpecialCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import { substringAfter } from "../utils/stringUtils.js";
import { randomEntry } from "../utils/arrayUtils.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/deoida.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";
import type { MessageCommand } from "./command.js";
import * as austrianTranslation from "../storage/austrianTranslation.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/doener.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";
import type { MessageCommand } from "./command.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/ehre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "discord.js";

import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { EhrePoints } from "../storage/db/model.js";
import type { ReactionHandler } from "../handler/ReactionHandler.js";
import * as ehre from "../storage/ehre.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/emoteLogger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ProcessableMessage } from "../service/command.js";
import type { SpecialCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

import * as emoteService from "../service/emote.js";
import * as emoteLogging from "../service/emoteLogging.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/emoteSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "discord.js";

import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as emoteLogging from "../service/emoteLogging.js";
import type { Emote } from "src/storage/db/model.js";
import { formatDateTime } from "src/utils/dateUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/emoteSender.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Message } from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { SpecialCommand } from "./command.js";
import log from "@log";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/emoteStats.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SlashCommandBuilder, type CommandInteraction } from "discord.js";

import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as emoteLogging from "../service/emoteLogging.js";

export default class EmoteStatsCommand implements ApplicationCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/erinnerung.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import * as chrono from "chrono-node";

import type { MessageCommand, ApplicationCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import log from "@log";
import * as reminderService from "../storage/reminders.js";
import type { Reminder } from "../storage/db/model.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/extend.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type APIEmbedField, EmbedBuilder, type Message } from "discord.js";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import { parseLegacyMessageParts } from "../service/command.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/faulenzerping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type Snowflake,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand } from "./command.js";
import { chunkArray } from "../utils/arrayUtils.js";
import * as time from "../utils/time.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/geringverdiener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
type GuildEmojiManager,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand, MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/gibmirids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChannelType } from "discord.js";
import type { ProcessableMessage } from "../service/command.js";
import * as chunking from "../service/chunking.js";
import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

/**
* Info command. Displays some useless information about the bot.
Expand Down
2 changes: 1 addition & 1 deletion src/commands/hilfe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { MessageCommand } from "./command.js";
import * as commandService from "../service/command.js";
import * as chunking from "../service/chunking.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

import type { ApplicationCommand, MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import assertNever from "../utils/assertNever.js";

interface GitHubContributor {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/instagram.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Message } from "discord.js";

import type { SpecialCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as instagramService from "../service/instagram.js";

const instagramOptions = {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/inventar.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { type CommandInteraction, SlashCommandBuilder, SlashCommandUserOption } from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand } from "./command.js";
import * as lootService from "../service/loot.js";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/metafrage.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { parseArgs, type ParseArgsConfig } from "node:util";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import { parseLegacyMessageParts } from "../service/command.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/min.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import { parseLegacyMessageParts } from "../service/command.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
SlashCommandStringOption,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand, MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/never.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {

import type { ApplicationCommand, MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

type Prompt = string;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/nickname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
type Snowflake,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand, AutocompleteCommand } from "./command.js";
import log from "@log";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/oida.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type CommandInteraction, SlashCommandBuilder, SlashCommandStringOption

import * as austrianTranslation from "../storage/austrianTranslation.js";
import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";

export default class OidaCommand implements ApplicationCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/penis.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @ts-ignore
import type { User } from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as penis from "../storage/penis.js";
import type { MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
type User,
} from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { MessageCommand } from "./command.js";
import { parseLegacyMessageParts, type ProcessableMessage } from "../service/command.js";
import * as timeUtils from "../utils/time.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/roll.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChannelType } from "discord.js";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

import { parseLegacyMessageParts, type ProcessableMessage } from "../service/command.js";
import { defer } from "../utils/interactionUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/saufen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "discord.js";

import type { ApplicationCommand, AutocompleteCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import { connectAndPlaySaufen } from "../handler/voiceHandler.js";
import assertNever from "../utils/assertNever.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/selfban.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { time, TimestampStyles } from "discord.js";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import * as banService from "../service/ban.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/splid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
// @ts-ignore Types are somehow broken :shrug:
import { SplidClient } from "splid-js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ApplicationCommand, AutocompleteCommand } from "./command.js";
import type { SplidGroup } from "../storage/db/model.js";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/stempelgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { Resvg } from "@resvg/resvg-js";

import type { ApplicationCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as stempel from "../storage/stempel.js";
import log from "@log";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/toggle.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type APIEmbedField, EmbedBuilder, type Message } from "discord.js";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import { LETTERS } from "../service/poll.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/vote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { parseArgs, type ParseArgsConfig } from "node:util";
import { cleanContent } from "discord.js";

import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

import { parseLegacyMessageParts } from "../service/command.js";
Expand Down
2 changes: 1 addition & 1 deletion src/commands/woisvote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import type { ReactionHandler } from "../handler/ReactionHandler.js";
import type { ApplicationCommand } from "./command.js";
import * as woisAction from "../storage/woisAction.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import { chunkArray } from "../utils/arrayUtils.js";
import log from "@log";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/yoink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import log from "@log";

import type { ApplicationCommand, MessageCommand } from "./command.js";
import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import { ensureChatInputCommand } from "../utils/interactionUtils.js";
import * as emoteService from "../service/emote.js";

Expand Down
2 changes: 1 addition & 1 deletion src/commands/zusammenfassung.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MessageCommand } from "./command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import type { ProcessableMessage } from "../service/command.js";

export default class ZusammenfassungCommand implements MessageCommand {
Expand Down
2 changes: 1 addition & 1 deletion src/handler/ReactionHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { MessageReaction, User } from "discord.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

export interface ReactionHandler {
displayName: string;
Expand Down
2 changes: 1 addition & 1 deletion src/handler/commandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
* message commands and relies on the "new commands"
*/
import type { ApplicationCommand, Command, SpecialCommand } from "../commands/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as banService from "../service/ban.js";
import log from "@log";

Expand Down
2 changes: 1 addition & 1 deletion src/handler/defaultReactionHandler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MessageReaction, User } from "discord.js";

import type { ProcessableMessage } from "../service/command.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";
import * as additionalMessageData from "../storage/additionalMessageData.js";
import * as fadingMessage from "../storage/fadingMessage.js";
import type { ReactionHandler } from "./ReactionHandler.js";
Expand Down
2 changes: 1 addition & 1 deletion src/handler/deleteThreadMessagesHandler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { type Message, MessageType } from "discord.js";
import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

export default async function (message: Message, context: BotContext) {
if (message.type !== MessageType.ThreadCreated) {
Expand Down
2 changes: 1 addition & 1 deletion src/handler/messageDeleteHandler.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ClientUser, Message } from "discord.js";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

const deleteInlineRepliesFromBot = (messageRef: Message<true>, botUser: ClientUser) =>
Promise.allSettled(
Expand Down
2 changes: 1 addition & 1 deletion src/handler/quoteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
type Snowflake,
} from "discord.js";

import type { BotContext, QuoteConfig } from "../context.js";
import type { BotContext, QuoteConfig } from "@/context.js";
import type { ReactionHandler } from "./ReactionHandler.js";
import log from "@log";

Expand Down
2 changes: 1 addition & 1 deletion src/handler/voiceHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
import type { VoiceChannel } from "discord.js";
import * as gad from "get-audio-duration";

import type { BotContext } from "../context.js";
import type { BotContext } from "@/context.js";

import { randomEntry } from "../utils/arrayUtils.js";
import log from "@log";
Expand Down
Loading

0 comments on commit f17b820

Please sign in to comment.