Changed import alias

This commit is contained in:
2024-10-07 18:16:23 +02:00
parent 0646e80697
commit 2ca3336f1f
104 changed files with 281 additions and 271 deletions

View File

@@ -1,6 +1,6 @@
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
import fs from "fs"
import { ICommand, IContextMenu } from "interfaces"
import { ICommand, IContextMenu } from "~/interfaces"
import { ExtendedClient } from "./Client.js"
import env from "./Env.js"
import { color } from "./functions/colors.js"

View File

@@ -1,5 +1,5 @@
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "interfaces"
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/interfaces"
import autoDeployCommands from "./Autodeploy.js"
import env from "./Env.js"
import { color } from "./functions/colors.js"

View File

@@ -1,4 +1,4 @@
import { IEnv } from "interfaces"
import { IEnv } from "~/interfaces"
import "dotenv/config"
const env: IEnv = {

View File

@@ -1,10 +1,10 @@
import { embedColor } from "config/options.js"
import { Events } from "discord.js"
import fs from "fs"
import { IAutocomplete } from "interfaces"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import logToChannel from "utils/functions/logtochannel.js"
import { embedColor } from "~/config/options.js"
import { IAutocomplete } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,10 +1,10 @@
import { embedColor } from "config/options.js"
import { Events } from "discord.js"
import fs from "fs"
import { IButton } from "interfaces"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import logToChannel from "utils/functions/logtochannel.js"
import { embedColor } from "~/config/options.js"
import { IButton } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,10 +1,10 @@
import { embedColor } from "config/options.js"
import { Events } from "discord.js"
import fs from "fs"
import { ICommand } from "interfaces"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import logToChannel from "utils/functions/logtochannel.js"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,10 +1,10 @@
import { embedColor } from "config/options.js"
import { Events } from "discord.js"
import fs from "fs"
import { IContextMenu } from "interfaces"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import logToChannel from "utils/functions/logtochannel.js"
import { embedColor } from "~/config/options.js"
import { IContextMenu } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,7 +1,7 @@
import { CronJob } from "cron"
import fs from "fs"
import { ICron } from "interfaces"
import path from "path"
import { ICron } from "~/interfaces"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,6 +1,6 @@
import fs from "fs"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import { ExtendedClient as Client } from "~/utils/Client.js"
const __dirname = import.meta.dirname
export default async function loadEvents(client: Client) {

View File

@@ -1,10 +1,10 @@
import { embedColor } from "config/options.js"
import { Events } from "discord.js"
import fs from "fs"
import { IModal } from "interfaces"
import path from "path"
import { ExtendedClient as Client } from "utils/Client.js"
import logToChannel from "utils/functions/logtochannel.js"
import { embedColor } from "~/config/options.js"
import { IModal } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts"
const __dirname = import.meta.dirname

View File

@@ -1,7 +1,7 @@
import fetch from "axios"
import { IPlayer, IPlayerData } from "interfaces"
import { IGuild, IGuildData } from "interfaces"
import env from "utils/Env.js"
import { IPlayer, IPlayerData } from "~/interfaces"
import { IGuild, IGuildData } from "~/interfaces"
import env from "~/utils/Env.js"
const apikey = env.prod.hypixelapikey
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/"

View File

@@ -1,7 +1,7 @@
import { Redis } from "ioredis"
import { ExtendedClient as Client } from "utils/Client.js"
import env from "utils/Env.js"
import { color } from "utils/functions/colors.js"
import { ExtendedClient as Client } from "~/utils/Client.js"
import env from "~/utils/Env.js"
import { color } from "~/utils/functions/colors.js"
// import { connect } from "mongoose"
import { Player } from "discord-player"
import { YoutubeiExtractor } from "discord-player-youtubei"

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { Collection, EmbedBuilder, GuildMember, Message } from "discord.js"
import { getUUID } from "utils/Hypixel.js"
import { embedColor } from "~/config/options.js"
import { getUUID } from "~/utils/Hypixel.js"
const tooLong = new EmbedBuilder()
.setDescription("You took too long to respond.")

View File

@@ -1,6 +1,6 @@
import { botLogChannel, devLogChannel, errorLogChannel, guildid, guildLogChannel, moderationLogChannel, onlineLogChannel } from "config/options.js"
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
import { client } from "utils/Illegitimate.js"
import { botLogChannel, devLogChannel, errorLogChannel, guildid, guildLogChannel, moderationLogChannel, onlineLogChannel } from "~/config/options.js"
import { client } from "~/utils/Illegitimate.js"
const channels = {
online: onlineLogChannel,

View File

@@ -1,4 +1,4 @@
import { beast, defaultMember, elite, gm, guildRole, guildStaff, manager, member, moderator, verifyTick } from "config/roles.js"
import { beast, defaultMember, elite, gm, guildRole, guildStaff, manager, member, moderator, verifyTick } from "~/config/roles.js"
const roles = [
gm,
manager,