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

9
.swcrc
View File

@@ -14,11 +14,10 @@
"preserveAllComments": false, "preserveAllComments": false,
"baseUrl": "./", "baseUrl": "./",
"paths": { "paths": {
"utils/*": ["src/utils/*"], "~/utils/*": ["src/utils/*"],
"schemas/*": ["src/schemas/*"], "~/config/*": ["src/config/*"],
"config/*": ["src/config/*"], "~/interfaces": ["src/interfaces/index"],
"interfaces": ["src/interfaces/index"], "~/typings": ["src/typings/index"]
"typings": ["src/typings/index"]
} }
}, },
"module": { "module": {

View File

@@ -1,5 +1,5 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
import { IContextMenu } from "interfaces" import { IContextMenu } from "~/interfaces"
export default { export default {
name: "congratsmessage", name: "congratsmessage",

View File

@@ -1,5 +1,5 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits } from "discord.js" import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits } from "discord.js"
import { IContextMenu } from "interfaces" import { IContextMenu } from "~/interfaces"
export default { export default {
name: "resetnick", name: "resetnick",

View File

@@ -1,10 +1,10 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
import { IContextMenu } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import roleManage from "utils/functions/rolesmanage.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js" import { waitingListRole } from "~/config/roles.js"
import { IContextMenu } from "~/interfaces"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "Update User", name: "Update User",

View File

@@ -1,7 +1,7 @@
import { anilist } from "anilist" import { anilist } from "anilist"
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "anime", name: "anime",

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { admin, helper } from "config/roles.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { admin, helper } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "ban", name: "ban",

View File

@@ -1,10 +1,10 @@
import { execSync } from "child_process" import { execSync } from "child_process"
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { createRequire } from "node:module" import { createRequire } from "node:module"
import os from "os" import os from "os"
import prettyMs from "pretty-ms" import prettyMs from "pretty-ms"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
const require = createRequire(import.meta.url) const require = createRequire(import.meta.url)
const { dependencies, devDependencies } = require("../../package.json") const { dependencies, devDependencies } = require("../../package.json")

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "utils/Hypixel.js" import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
import { ICommand } from "~/interfaces"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
export default { export default {
name: "check", name: "check",

View File

@@ -1,7 +1,7 @@
import { embedColor } from "config/options.js"
import { channelMention, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js" import { channelMention, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
import { ICommand } from "interfaces" import { embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "clear", name: "clear",

View File

@@ -1,9 +1,9 @@
import { embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { settings } from "src/drizzle/schema.js" import { settings } from "src/drizzle/schema.js"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "config", name: "config",

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import ban from "./counting/ban.js" import ban from "./counting/ban.js"
import unban from "./counting/unban.js" import unban from "./counting/unban.js"

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { countingBanned } from "config/roles.js"
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js" import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { countingBanned } from "~/config/roles.js"
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> { export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
const member = interaction.options.getMember("user")! as GuildMember const member = interaction.options.getMember("user")! as GuildMember

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { countingBanned } from "config/roles.js"
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js" import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { countingBanned } from "~/config/roles.js"
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> { export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
const member = interaction.options.getMember("user")! as GuildMember const member = interaction.options.getMember("user")! as GuildMember

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { getHeadURL, getIGN, getUUID } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
export default { export default {
name: "find", name: "find",

View File

@@ -1,12 +1,12 @@
import { devMessage, embedColor } from "config/options.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { verifies } from "src/drizzle/schema.js" import { verifies } from "src/drizzle/schema.js"
import logToChannel from "utils/functions/logtochannel.js" import { devMessage, embedColor } from "~/config/options.js"
import roleManage from "utils/functions/rolesmanage.js" import { ICommand } from "~/interfaces"
import { getIGN } from "utils/Hypixel.js" import logToChannel from "~/utils/functions/logtochannel.js"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "forceunverify", name: "forceunverify",

View File

@@ -1,10 +1,10 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import roleManage from "utils/functions/rolesmanage.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js" import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "forceupdate", name: "forceupdate",

View File

@@ -1,11 +1,11 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { verifies } from "src/drizzle/schema.js" import { verifies } from "src/drizzle/schema.js"
import logToChannel from "utils/functions/logtochannel.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import roleManage from "utils/functions/rolesmanage.js" import { ICommand } from "~/interfaces"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js" import logToChannel from "~/utils/functions/logtochannel.js"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
export default { export default {
name: "forceverify", name: "forceverify",

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import guildInfo from "./guild/info.js" import guildInfo from "./guild/info.js"
import guildMember from "./guild/member.js" import guildMember from "./guild/member.js"
import guildTop from "./guild/top.js" import guildTop from "./guild/top.js"

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { IGuildData } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "utils/Hypixel.js" import { IGuildData } from "~/interfaces"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel.js"
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> { export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> { export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { IGuildData } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { getGuild, getIGN, getPlayer, getUUID } from "utils/Hypixel.js" import { IGuildData } from "~/interfaces"
import { redis } from "utils/Illegitimate.js" import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
import { redis } from "~/utils/Illegitimate.js"
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> { export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, SlashCommandBuilder } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "help", name: "help",

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor, instructionsgif } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor, instructionsgif } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "instructions", name: "instructions",

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { admin, helper } from "config/roles.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { admin, helper } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "kick", name: "kick",

View File

@@ -1,5 +1,5 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { ICommand } from "~/interfaces"
import leave from "./music/leave.js" import leave from "./music/leave.js"
import nowplaying from "./music/nowplaying.js" import nowplaying from "./music/nowplaying.js"
import pause from "./music/pause.js" import pause from "./music/pause.js"

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function leave(interaction: ChatInputCommandInteraction) { export default async function leave(interaction: ChatInputCommandInteraction) {
const player = useMainPlayer() const player = useMainPlayer()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function nowplaying(interaction: ChatInputCommandInteraction) { export default async function nowplaying(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function pause(interaction: ChatInputCommandInteraction) { export default async function pause(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction, GuildMember } from "discord.js" import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function play(interaction: ChatInputCommandInteraction) { export default async function play(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function queue(interaction: ChatInputCommandInteraction) { export default async function queue(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function skip(interaction: ChatInputCommandInteraction) { export default async function skip(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function pause(interaction: ChatInputCommandInteraction) { export default async function pause(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js"
import { useMainPlayer } from "discord-player" import { useMainPlayer } from "discord-player"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { embedColor } from "~/config/options.js"
export default async function volume(interaction: ChatInputCommandInteraction) { export default async function volume(interaction: ChatInputCommandInteraction) {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "ping", name: "ping",

View File

@@ -1,7 +1,7 @@
import { embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder, User } from "discord.js" import { InteractionContextType, SlashCommandBuilder, User } from "discord.js"
import { ICommand } from "interfaces" import { embedColor } from "~/config/options.js"
import env from "utils/Env.js" import { ICommand } from "~/interfaces"
import env from "~/utils/Env.js"
export default { export default {
name: "pp", name: "pp",

View File

@@ -1,11 +1,11 @@
import { devMessage, embedColor } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { waitingLists } from "src/drizzle/schema.js" import { waitingLists } from "src/drizzle/schema.js"
import logToChannel from "utils/functions/logtochannel.js" import { devMessage, embedColor } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "remove", name: "remove",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "reqs", name: "reqs",

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js" import { ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "send", name: "send",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "setnick", name: "setnick",

View File

@@ -1,4 +1,3 @@
import { devMessage, embedColor } from "config/options.js"
import { import {
ActionRowBuilder, ActionRowBuilder,
ButtonBuilder, ButtonBuilder,
@@ -9,7 +8,8 @@ import {
SlashCommandBuilder, SlashCommandBuilder,
TextChannel TextChannel
} from "discord.js" } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
export default { export default {
name: "setup", name: "setup",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { channelMention, ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js" import { channelMention, ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "slowmode", name: "slowmode",

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import beast from "./staff/beast.js" import beast from "./staff/beast.js"
import help from "./staff/help.js" import help from "./staff/help.js"
import prune from "./staff/prune.js" import prune from "./staff/prune.js"

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "config/reqs.js"
import { ChatInputCommandInteraction } from "discord.js" import { ChatInputCommandInteraction } from "discord.js"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "~/config/reqs.js"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
export default async function beast(interaction: ChatInputCommandInteraction): Promise<void> { export default async function beast(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
import { ExtendedClient as Client } from "utils/Client.js" import { devMessage, embedColor } from "~/config/options.js"
import { ExtendedClient as Client } from "~/utils/Client.js"
export default async function help(interaction: ChatInputCommandInteraction, client: Client): Promise<void> { export default async function help(interaction: ChatInputCommandInteraction, client: Client): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,6 +1,6 @@
import { devMessage, embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
import env from "utils/Env.js" import { devMessage, embedColor } from "~/config/options.js"
import env from "~/utils/Env.js"
export default async function prune(interaction: ChatInputCommandInteraction): Promise<void> { export default async function prune(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,10 +1,10 @@
import { embedColor, hypixelGuildID } from "config/options.js"
import { ChatInputCommandInteraction, GuildMember } from "discord.js" import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import { IGuildData } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import env from "utils/Env.js" import { embedColor, hypixelGuildID } from "~/config/options.js"
import roleManage from "utils/functions/rolesmanage.js" import { IGuildData } from "~/interfaces"
import { getGuild } from "utils/Hypixel.js" import env from "~/utils/Env.js"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild } from "~/utils/Hypixel.js"
export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> { export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,11 +1,11 @@
import { embedColor, hypixelGuildID } from "config/options.js"
import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js" import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js"
import { IGuildData } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import env from "utils/Env.js" import { embedColor, hypixelGuildID } from "~/config/options.js"
import { color } from "utils/functions/colors.js" import { IGuildData } from "~/interfaces"
import roleManage from "utils/functions/rolesmanage.js" import env from "~/utils/Env.js"
import { getGuild, getIGN } from "utils/Hypixel.js" import { color } from "~/utils/functions/colors.js"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> { export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply() await interaction.deferReply()

View File

@@ -1,9 +1,9 @@
import { devMessage, embedColor } from "config/options.js"
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import ms from "ms" import ms from "ms"
import prettyMs from "pretty-ms" import prettyMs from "pretty-ms"
import logToChannel from "utils/functions/logtochannel.js" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "timeout", name: "timeout",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, User, userMention } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, User, userMention } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { ICommand } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
name: "unban", name: "unban",

View File

@@ -1,10 +1,10 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js" import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import roleManage from "utils/functions/rolesmanage.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js" import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "update", name: "update",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder } from "discord.js" import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces" import { devMessage, embedColor } from "~/config/options.js"
import { formatUuid, getHeadURL, getIGN, getUUID } from "utils/Hypixel.js" import { ICommand } from "~/interfaces"
import { formatUuid, getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
export default { export default {
name: "uuid", name: "uuid",

View File

@@ -1,12 +1,12 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js" import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { IPlayerData } from "interfaces"
import { IGuildData } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { verifies } from "src/drizzle/schema.js" import { verifies } from "src/drizzle/schema.js"
import roleManage from "utils/functions/rolesmanage.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js" import { ICommand } from "~/interfaces"
import { IPlayerData } from "~/interfaces"
import { IGuildData } from "~/interfaces"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
export default { export default {
name: "verify", name: "verify",

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js" import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { getHeadURL, getIGN } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "whoami", name: "whoami",

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js" import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { getHeadURL, getIGN } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "whois", name: "whois",

View File

@@ -1,5 +1,5 @@
import { QueryType, useMainPlayer } from "discord-player" import { QueryType, useMainPlayer } from "discord-player"
import { IAutocomplete } from "interfaces" import { IAutocomplete } from "~/interfaces"
export default { export default {
name: "music", name: "music",

View File

@@ -1,4 +1,4 @@
import { IAutocomplete } from "interfaces" import { IAutocomplete } from "~/interfaces"
export default { export default {
name: "unban", name: "unban",

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, hypixelLevel, skywarsLevel } from "utils/Hypixel.js" import { devMessage, embedColor } from "~/config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
import { IButton } from "~/interfaces"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
export default { export default {
name: "checkstats", name: "checkstats",

View File

@@ -1,12 +1,12 @@
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, TextChannel } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, TextChannel } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { guildApps, waitingLists } from "src/drizzle/schema.js" import { guildApps, waitingLists } from "src/drizzle/schema.js"
import { color } from "utils/functions/colors.js" import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options.js"
import { getGuild, getIGN } from "utils/Hypixel.js" import { waitingListRole } from "~/config/roles.js"
import { IButton } from "~/interfaces"
import { color } from "~/utils/functions/colors.js"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "guildapplicationaccept", name: "guildapplicationaccept",

View File

@@ -1,5 +1,5 @@
import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js" import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { IButton } from "interfaces" import { IButton } from "~/interfaces"
export default { export default {
name: "guildapplicationdeny", name: "guildapplicationdeny",

View File

@@ -1,12 +1,12 @@
import { ignM, largeM, smallM } from "config/limitmessages.js"
import { applicationsChannel, embedColor } from "config/options.js"
import { guild as guildQuestions } from "config/questions.js"
import { guildRole } from "config/roles.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { guildApps } from "src/drizzle/schema.js" import { guildApps } from "src/drizzle/schema.js"
import applicationQuestions from "utils/functions/applicationquestions.js" import { ignM, largeM, smallM } from "~/config/limitmessages.js"
import { applicationsChannel, embedColor } from "~/config/options.js"
import { guild as guildQuestions } from "~/config/questions.js"
import { guildRole } from "~/config/roles.js"
import { IButton } from "~/interfaces"
import applicationQuestions from "~/utils/functions/applicationquestions.js"
export default { export default {
name: "guildapply", name: "guildapply",

View File

@@ -1,10 +1,10 @@
import { ignM, largeM, smallM } from "config/limitmessages.js"
import { embedColor, inactivityLogChannel } from "config/options.js"
import { inactivity } from "config/questions.js"
import { beast, gm, guildRole, guildStaff, manager, member, moderator } from "config/roles.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
import { IButton } from "interfaces" import { ignM, largeM, smallM } from "~/config/limitmessages.js"
import applicationQuestions from "utils/functions/applicationquestions.js" import { embedColor, inactivityLogChannel } from "~/config/options.js"
import { inactivity } from "~/config/questions.js"
import { beast, gm, guildRole, guildStaff, manager, member, moderator } from "~/config/roles.js"
import { IButton } from "~/interfaces"
import applicationQuestions from "~/utils/functions/applicationquestions.js"
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole] const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
export default { export default {

View File

@@ -1,4 +1,4 @@
import { IButton } from "interfaces" import { IButton } from "~/interfaces"
export default { export default {
name: "inactiveapplicationaccept", name: "inactiveapplicationaccept",

View File

@@ -1,4 +1,4 @@
import { IButton } from "interfaces" import { IButton } from "~/interfaces"
export default { export default {
name: "inactiveapplicationdeny", name: "inactiveapplicationdeny",

View File

@@ -1,9 +1,9 @@
import { embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { staffApps } from "src/drizzle/schema.js" import { staffApps } from "src/drizzle/schema.js"
import { embedColor } from "~/config/options.js"
import { IButton } from "~/interfaces"
export default { export default {
name: "staffapplicationaccept", name: "staffapplicationaccept",

View File

@@ -1,5 +1,5 @@
import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js" import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { IButton } from "interfaces" import { IButton } from "~/interfaces"
export default { export default {
name: "staffapplicationdeny", name: "staffapplicationdeny",

View File

@@ -1,13 +1,13 @@
import { ignM, largeM } from "config/limitmessages.js"
import { embedColor, staffApplicationsChannel } from "config/options.js"
import { staff as staffQuestions } from "config/questions.js"
import { guildRole, guildStaff } from "config/roles.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { staffApps } from "src/drizzle/schema.js" import { staffApps } from "src/drizzle/schema.js"
import env from "utils/Env.js" import { ignM, largeM } from "~/config/limitmessages.js"
import applicationQuestions from "utils/functions/applicationquestions.js" import { embedColor, staffApplicationsChannel } from "~/config/options.js"
import { staff as staffQuestions } from "~/config/questions.js"
import { guildRole, guildStaff } from "~/config/roles.js"
import { IButton } from "~/interfaces"
import env from "~/utils/Env.js"
import applicationQuestions from "~/utils/functions/applicationquestions.js"
export default { export default {
name: "staffapply", name: "staffapply",

View File

@@ -1,5 +1,5 @@
import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js" import { ActionRowBuilder, ModalBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
import { IButton } from "interfaces" import { IButton } from "~/interfaces"
export default { export default {
name: "verify", name: "verify",

View File

@@ -1,9 +1,9 @@
import { hypixelGuildID } from "config/options.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { IButton } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { waitingLists } from "src/drizzle/schema.js" import { waitingLists } from "src/drizzle/schema.js"
import { getGuild, getIGN } from "utils/Hypixel.js" import { hypixelGuildID } from "~/config/options.js"
import { IButton } from "~/interfaces"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
export default { export default {
name: "waitinglistupdate", name: "waitinglistupdate",

View File

@@ -1,9 +1,9 @@
import { embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, Message } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, Message } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { IModal } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { guildApps } from "src/drizzle/schema.js" import { guildApps } from "src/drizzle/schema.js"
import { embedColor } from "~/config/options.js"
import { IModal } from "~/interfaces"
export default { export default {
name: "denyreasonbox", name: "denyreasonbox",

View File

@@ -1,9 +1,9 @@
import { embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js" import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"
import { eq } from "drizzle-orm" import { eq } from "drizzle-orm"
import { IModal } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { staffApps } from "src/drizzle/schema.js" import { staffApps } from "src/drizzle/schema.js"
import { embedColor } from "~/config/options.js"
import { IModal } from "~/interfaces"
export default { export default {
name: "staffdenyreasonbox", name: "staffdenyreasonbox",

View File

@@ -1,10 +1,10 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { GuildMember } from "discord.js" import { GuildMember } from "discord.js"
import { IModal } from "interfaces"
import db from "src/drizzle/db.js" import db from "src/drizzle/db.js"
import { verifies } from "src/drizzle/schema.js" import { verifies } from "src/drizzle/schema.js"
import roleManage from "utils/functions/rolesmanage.js" import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js" import { IModal } from "~/interfaces"
import roleManage from "~/utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
export default { export default {
name: "verifybox", name: "verifybox",

View File

@@ -1,6 +1,6 @@
import { drizzle } from "drizzle-orm/postgres-js" import { drizzle } from "drizzle-orm/postgres-js"
import postgres from "postgres" import postgres from "postgres"
import env from "utils/Env.js" import env from "~/utils/Env.js"
import * as schema from "./schema.js" import * as schema from "./schema.js"
const queryClient = postgres(env.prod.postgresURI) const queryClient = postgres(env.prod.postgresURI)

View File

@@ -1,9 +1,9 @@
import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "config/options.js"
import { TextChannel } from "discord.js" import { TextChannel } from "discord.js"
import { ICron, IGuildData } from "interfaces" import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "~/config/options.js"
import { color } from "utils/functions/colors.js" import { ICron, IGuildData } from "~/interfaces"
import { getGuild, getIGN } from "utils/Hypixel.js" import { color } from "~/utils/functions/colors.js"
import { client } from "utils/Illegitimate.js" import { getGuild, getIGN } from "~/utils/Hypixel.js"
import { client } from "~/utils/Illegitimate.js"
async function guildWeekly() { async function guildWeekly() {
const channel = client.channels.cache.get(guildLogChannel) as TextChannel const channel = client.channels.cache.get(guildLogChannel) as TextChannel

View File

@@ -1,7 +1,7 @@
import { embedColor } from "config/options.js"
import { GuildMember, userMention } from "discord.js" import { GuildMember, userMention } from "discord.js"
import { IEvent } from "interfaces" import { embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { IEvent } from "~/interfaces"
import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
event: "guildMemberAdd", event: "guildMemberAdd",

View File

@@ -1,5 +1,5 @@
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
import { color } from "utils/functions/colors.js" import { color } from "~/utils/functions/colors.js"
export default { export default {
event: "interactionCreate", event: "interactionCreate",

View File

@@ -1,6 +1,6 @@
import { ChannelType } from "discord.js" import { ChannelType } from "discord.js"
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
import env from "utils/Env.js" import env from "~/utils/Env.js"
export default { export default {
event: "messageCreate", event: "messageCreate",

View File

@@ -1,4 +1,4 @@
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
export default { export default {
event: "messageCreate", event: "messageCreate",

View File

@@ -1,5 +1,5 @@
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
import { color } from "utils/functions/colors.js" import { color } from "~/utils/functions/colors.js"
export default { export default {
event: "ready", event: "ready",

View File

@@ -1,6 +1,6 @@
import { embedColor } from "config/options.js" import { embedColor } from "~/config/options.js"
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
import logToChannel from "utils/functions/logtochannel.js" import logToChannel from "~/utils/functions/logtochannel.js"
export default { export default {
event: "ready", event: "ready",

View File

@@ -1,7 +1,7 @@
import { guildid } from "config/options.js"
import statuses from "config/statuses.js"
import { Guild } from "discord.js" import { Guild } from "discord.js"
import { IEvent } from "interfaces" import { guildid } from "~/config/options.js"
import statuses from "~/config/statuses.js"
import { IEvent } from "~/interfaces"
export default { export default {
event: "ready", event: "ready",

View File

@@ -1,4 +1,4 @@
import { IEvent } from "interfaces" import { IEvent } from "~/interfaces"
export default { export default {
event: "voiceStateUpdate", event: "voiceStateUpdate",

View File

@@ -1,3 +1,3 @@
import { Illegitimate } from "utils/Illegitimate.js" import { Illegitimate } from "~/utils/Illegitimate.js"
new Illegitimate().start() new Illegitimate().start()

View File

@@ -1,5 +1,5 @@
import { AutocompleteInteraction } from "discord.js" import { AutocompleteInteraction } from "discord.js"
import { ExtendedClient } from "utils/Client.js" import { ExtendedClient } from "~/utils/Client.js"
export default interface IAutocomplete { export default interface IAutocomplete {
name: string name: string

View File

@@ -1,5 +1,5 @@
import { ButtonInteraction } from "discord.js" import { ButtonInteraction } from "discord.js"
import { ExtendedClient } from "utils/Client.js" import { ExtendedClient } from "~/utils/Client.js"
export default interface IButton { export default interface IButton {
name: string name: string

View File

@@ -1,5 +1,5 @@
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js" import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
import { ExtendedClient as Client } from "utils/Client.js" import { ExtendedClient as Client } from "~/utils/Client.js"
export default interface ICommand { export default interface ICommand {
name: string name: string

View File

@@ -1,5 +1,5 @@
import { ContextMenuCommandBuilder, ContextMenuCommandInteraction } from "discord.js" import { ContextMenuCommandBuilder, ContextMenuCommandInteraction } from "discord.js"
import { ExtendedClient } from "utils/Client.js" import { ExtendedClient } from "~/utils/Client.js"
export default interface IContextMenu { export default interface IContextMenu {
name: string name: string

View File

@@ -1,4 +1,4 @@
import { TimeZones } from "typings" import { TimeZones } from "~/typings"
interface TimeFormat { interface TimeFormat {
seconds: "*" | number seconds: "*" | number

View File

@@ -1,5 +1,5 @@
import { ModalSubmitInteraction } from "discord.js" import { ModalSubmitInteraction } from "discord.js"
import { ExtendedClient } from "utils/Client.js" import { ExtendedClient } from "~/utils/Client.js"
export default interface IModal { export default interface IModal {
name: string name: string

View File

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

View File

@@ -1,5 +1,5 @@
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js" 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 autoDeployCommands from "./Autodeploy.js"
import env from "./Env.js" import env from "./Env.js"
import { color } from "./functions/colors.js" import { color } from "./functions/colors.js"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
import fs from "fs" import fs from "fs"
import path from "path" 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 const __dirname = import.meta.dirname
export default async function loadEvents(client: Client) { 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 { Events } from "discord.js"
import fs from "fs" import fs from "fs"
import { IModal } from "interfaces"
import path from "path" import path from "path"
import { ExtendedClient as Client } from "utils/Client.js" import { embedColor } from "~/config/options.js"
import logToChannel from "utils/functions/logtochannel.js" import { IModal } from "~/interfaces"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/functions/logtochannel.js"
type FileType = "js" | "ts" type FileType = "js" | "ts"
const __dirname = import.meta.dirname const __dirname = import.meta.dirname

View File

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

View File

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

Some files were not shown because too many files have changed in this diff Show More