From 4823607edbce8613cc54b32e4b12eb90514f9255 Mon Sep 17 00:00:00 2001 From: Vliegenier04 Date: Thu, 12 Dec 2024 22:07:49 +0100 Subject: [PATCH] Fix: more absolute paths --- src/events/mineflayer/chat/comment-blocked.ts | 2 +- src/events/mineflayer/chat/guild-chat.ts | 2 +- src/events/mineflayer/chat/guild-mute-unmute.ts | 2 +- src/events/mineflayer/chat/join-leave.ts | 2 +- src/events/mineflayer/chat/join-request.ts | 10 +++++----- src/events/mineflayer/chat/member-join-leave.ts | 8 ++++---- src/events/mineflayer/chat/member-kick.ts | 8 ++++---- src/events/mineflayer/chat/promote-demote.ts | 4 ++-- src/events/mineflayer/chat/quest-complete.ts | 2 +- src/events/mineflayer/chat/quest-tier-complete.ts | 2 +- src/events/mineflayer/chat/whisper.ts | 6 +++--- src/events/mineflayer/handler/kicked.ts | 2 +- src/events/mineflayer/handler/login.ts | 4 ++-- src/util/log-error.ts | 2 +- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/events/mineflayer/chat/comment-blocked.ts b/src/events/mineflayer/chat/comment-blocked.ts index 8648ccda..59e4297c 100644 --- a/src/events/mineflayer/chat/comment-blocked.ts +++ b/src/events/mineflayer/chat/comment-blocked.ts @@ -1,5 +1,5 @@ import logger from 'consola'; -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; export default { name: 'chat:commentBlocked', diff --git a/src/events/mineflayer/chat/guild-chat.ts b/src/events/mineflayer/chat/guild-chat.ts index 241d5127..19a39d3e 100644 --- a/src/events/mineflayer/chat/guild-chat.ts +++ b/src/events/mineflayer/chat/guild-chat.ts @@ -1,5 +1,5 @@ import { escapeMarkdown } from 'discord.js'; -import getRankColor from '@util/get-rank-color'; +import getRankColor from '../../../util/get-rank-color'; export default { name: 'chat:guildChat', diff --git a/src/events/mineflayer/chat/guild-mute-unmute.ts b/src/events/mineflayer/chat/guild-mute-unmute.ts index 9eaef473..26d5ac9c 100644 --- a/src/events/mineflayer/chat/guild-mute-unmute.ts +++ b/src/events/mineflayer/chat/guild-mute-unmute.ts @@ -1,4 +1,4 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; import { escapeMarkdown } from 'discord.js'; export default { diff --git a/src/events/mineflayer/chat/join-leave.ts b/src/events/mineflayer/chat/join-leave.ts index 93c904da..131bffcb 100644 --- a/src/events/mineflayer/chat/join-leave.ts +++ b/src/events/mineflayer/chat/join-leave.ts @@ -1,4 +1,4 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; import { escapeMarkdown } from 'discord.js'; export default { diff --git a/src/events/mineflayer/chat/join-request.ts b/src/events/mineflayer/chat/join-request.ts index 039b803b..77502740 100644 --- a/src/events/mineflayer/chat/join-request.ts +++ b/src/events/mineflayer/chat/join-request.ts @@ -1,8 +1,8 @@ -import isUserBlacklisted from '@blacklist/is-user-blacklisted'; -import env from '@util/env'; -import fetchHypixelPlayerProfile from '@requests/fetch-hypixel-player-profile'; -import fetchMojangProfile from '@requests/fetch-mojang-profile'; -import isFetchError from '@requests/is-fetch-error'; +import isUserBlacklisted from '../../../blacklist/is-user-blacklisted'; +import env from '../../../util/env'; +import fetchHypixelPlayerProfile from '../../../requests/fetch-hypixel-player-profile'; +import fetchMojangProfile from '../../../requests/fetch-mojang-profile'; +import isFetchError from '../../../requests/is-fetch-error'; export default { name: 'chat:joinRequest', diff --git a/src/events/mineflayer/chat/member-join-leave.ts b/src/events/mineflayer/chat/member-join-leave.ts index 6de2642a..4ab2b5f0 100644 --- a/src/events/mineflayer/chat/member-join-leave.ts +++ b/src/events/mineflayer/chat/member-join-leave.ts @@ -1,8 +1,8 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; import { escapeMarkdown } from 'discord.js'; -import fetchMojangProfile from '@requests/fetch-mojang-profile'; -import isFetchError from '@requests/is-fetch-error'; -import isUserBlacklisted from '@blacklist/is-user-blacklisted'; +import fetchMojangProfile from '../../../requests/fetch-mojang-profile'; +import isFetchError from '../../../requests/is-fetch-error'; +import isUserBlacklisted from '../../../blacklist/is-user-blacklisted'; import { BotEvents } from 'mineflayer'; import getRankColor from '@util/get-rank-color'; diff --git a/src/events/mineflayer/chat/member-kick.ts b/src/events/mineflayer/chat/member-kick.ts index cc4a00c3..c105b640 100644 --- a/src/events/mineflayer/chat/member-kick.ts +++ b/src/events/mineflayer/chat/member-kick.ts @@ -1,8 +1,8 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; import { escapeMarkdown } from 'discord.js'; -import fetchMojangProfile from '@requests/fetch-mojang-profile'; -import isFetchError from '@requests/is-fetch-error'; -import env from '@util/env'; +import fetchMojangProfile from '../../../requests/fetch-mojang-profile'; +import isFetchError from '../../../requests/is-fetch-error'; +import env from '../../../util/env'; export default { name: 'chat:memberKick', diff --git a/src/events/mineflayer/chat/promote-demote.ts b/src/events/mineflayer/chat/promote-demote.ts index 637b7d80..eccab05d 100644 --- a/src/events/mineflayer/chat/promote-demote.ts +++ b/src/events/mineflayer/chat/promote-demote.ts @@ -1,6 +1,6 @@ import { escapeMarkdown } from 'discord.js'; -import Emojis from '@util/emojis'; -import getRankColor from '@util/get-rank-color'; +import Emojis from '../../../util/emojis'; +import getRankColor from '../../../util/get-rank-color'; export default { name: 'chat:promoteDemote', diff --git a/src/events/mineflayer/chat/quest-complete.ts b/src/events/mineflayer/chat/quest-complete.ts index cc953b75..0cf46aa8 100644 --- a/src/events/mineflayer/chat/quest-complete.ts +++ b/src/events/mineflayer/chat/quest-complete.ts @@ -1,4 +1,4 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; export default { name: 'chat:questComplete', diff --git a/src/events/mineflayer/chat/quest-tier-complete.ts b/src/events/mineflayer/chat/quest-tier-complete.ts index 86c2973c..320d9956 100644 --- a/src/events/mineflayer/chat/quest-tier-complete.ts +++ b/src/events/mineflayer/chat/quest-tier-complete.ts @@ -1,4 +1,4 @@ -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; export default { name: 'chat:questTierComplete', diff --git a/src/events/mineflayer/chat/whisper.ts b/src/events/mineflayer/chat/whisper.ts index 307032d1..1c3e8819 100644 --- a/src/events/mineflayer/chat/whisper.ts +++ b/src/events/mineflayer/chat/whisper.ts @@ -1,6 +1,6 @@ -import fetchHypixelGuild from '@requests/fetch-hypixel-guild'; -import fetchMojangProfile from '@requests/fetch-mojang-profile'; -import isFetchError from '@requests/is-fetch-error'; +import fetchHypixelGuild from '../../../requests/fetch-hypixel-guild'; +import fetchMojangProfile from '../../../requests/fetch-mojang-profile'; +import isFetchError from '../../../requests/is-fetch-error'; export default { name: 'chat:whisper', diff --git a/src/events/mineflayer/handler/kicked.ts b/src/events/mineflayer/handler/kicked.ts index e217d4e2..3c1661ba 100644 --- a/src/events/mineflayer/handler/kicked.ts +++ b/src/events/mineflayer/handler/kicked.ts @@ -1,5 +1,5 @@ import logger from 'consola'; -import Emojis from '@util/emojis'; +import Emojis from '../../../util/emojis'; export default { name: 'kicked', diff --git a/src/events/mineflayer/handler/login.ts b/src/events/mineflayer/handler/login.ts index 14dfc6f1..600bbdf2 100644 --- a/src/events/mineflayer/handler/login.ts +++ b/src/events/mineflayer/handler/login.ts @@ -1,5 +1,5 @@ -import Emojis from '@util/emojis'; -import env from '@util/env'; +import Emojis from '../../../util/emojis'; +import env from '../../../util/env'; export default { name: 'login', diff --git a/src/util/log-error.ts b/src/util/log-error.ts index 02d51ae2..86d61c23 100644 --- a/src/util/log-error.ts +++ b/src/util/log-error.ts @@ -1,6 +1,6 @@ import { TextChannel } from 'discord.js'; import logger from 'consola'; -import env from '@util/env'; +import env from '../util/env'; import bot from '..'; export default async (err: Error, message?: string) => {