Merge branch 'dev' into 'main'

Dev

See merge request illegitimate/illegitimate-bot!332
This commit is contained in:
2025-03-08 14:32:28 +01:00
104 changed files with 274 additions and 293 deletions

5
.swcrc
View File

@@ -1,5 +1,5 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"$schema": "https://swc.rs/schema.json",
"jsc": {
"parser": {
"syntax": "typescript",
@@ -25,7 +25,8 @@
"strictMode": true,
"noInterop": false,
"lazy": false,
"ignoreDynamic": true
"ignoreDynamic": true,
"resolveFully": true
},
"minify": false,
"sourceMaps": false

View File

@@ -29,7 +29,6 @@
"db:studio": "drizzle-kit studio",
"db:start": "docker compose -f dev-db.yml up -d",
"db:stop": "docker compose -f dev-db.yml down",
"bot:update": "tsx scripts/update-bot.ts",
"push:prod": "tsx scripts/deploy-commands.ts",
"push:dev": "tsx scripts/dev-deploy.ts",
"delete:dev": "tsx scripts/delete-commands.ts"

View File

@@ -1,13 +1,13 @@
import { REST, Routes } from "discord.js"
import env from "../src/utils/Env"
import { log } from "../src/utils/Logger.js"
import { log } from "../src/utils/Logger"
const rest = new REST({ version: "10" }).setToken(env.dev.DEVTOKEN)
try {
log("Started deleting application (/) commands.", "info")
await rest.put(
Routes.applicationGuildCommands(env.dev.devid, env.dev.guildid),
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
{ body: [] }
)
log("Successfully deleted application (/) commands.", "info")

View File

@@ -1,8 +1,8 @@
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
import fs from "node:fs"
import { ICommand } from "../src/interfaces"
import { ICommand } from "../src/typings"
import env from "../src/utils/Env"
import { log } from "../src/utils/Logger.js"
import { log } from "../src/utils/Logger"
const rest = new REST({ version: "10" }).setToken(env.prod.TOKEN)
const commands: RESTPutAPIApplicationCommandsJSONBody = []
@@ -25,7 +25,7 @@ try {
log(commandsString.join("\n"), "info", { type: "preset", color: "lavender" })
await rest.put(
Routes.applicationCommands(env.dev.clientid),
Routes.applicationCommands(env.dev.CLIENTID),
{ body: commands }
).then(() => {
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info", { type: "preset", color: "green" })

View File

@@ -1,8 +1,8 @@
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
import fs from "fs"
import { ICommand } from "../src/interfaces"
import { ICommand } from "../src/typings"
import env from "../src/utils/Env"
import { log } from "../src/utils/Logger.js"
import { log } from "../src/utils/Logger"
const rest = new REST({ version: "10" }).setToken(env.dev.DEVTOKEN)
const commands: RESTPutAPIApplicationCommandsJSONBody = []
@@ -26,7 +26,7 @@ try {
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
await rest.put(
Routes.applicationGuildCommands(env.dev.devid, env.dev.guildid),
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
{ body: commands }
).then(() => {
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")

View File

@@ -1,19 +0,0 @@
import axios from "axios"
import { log } from "../src/utils/Logger.js"
const url = process.env.WATCHTOWERURL
const token = process.env.WATCHTOWERTOKEN
if (!url || !token) {
throw new Error("Missing WATCHTOWERURL or WATCHTOWERTOKEN")
}
await axios.get(url, {
headers: {
Authorization: `Bearer ${token}`
}
}).then(() => {
log("Illegitimate bot updated", "info")
}).catch(err => {
console.error("Error updating bot", err)
})

View File

@@ -1,11 +1,11 @@
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits, userMention } from "discord.js"
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { getVerify } from "src/drizzle/functions"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
import { waitingListRole } from "~/config/roles"
import { IContextMenu } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
import getGuildRank from "~/utils/Functions/guildrank"
import roleManage from "~/utils/Functions/rolesmanage"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel"
export default {
name: "Update User",

View File

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

View File

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

View File

@@ -3,7 +3,7 @@ import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { createRequire } from "node:module"
import os from "os"
import prettyMs from "pretty-ms"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
const require = createRequire(import.meta.url)

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { addSetting, getSetting, updateSetting } from "src/drizzle/functions.js"
import { embedColor } from "~/config/options.js"
import { addSetting, getSetting, updateSetting } from "src/drizzle/functions"
import { embedColor } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

@@ -1,8 +1,8 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import ban from "./counting/ban.js"
import unban from "./counting/unban.js"
import ban from "./counting/ban"
import unban from "./counting/unban"
export default {
name: "counting",

View File

@@ -1,6 +1,6 @@
import { GuildMember, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { countingBanned } from "~/config/roles.js"
import { devMessage, embedColor } from "~/config/options"
import { countingBanned } from "~/config/roles"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,6 +1,6 @@
import { GuildMember, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { countingBanned } from "~/config/roles.js"
import { devMessage, embedColor } from "~/config/options"
import { countingBanned } from "~/config/roles"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

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

View File

@@ -1,10 +1,10 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { getVerify, removeVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { getVerify, removeVerify } from "src/drizzle/functions"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getIGN } from "~/utils/Hypixel.js"
import logToChannel from "~/utils/Functions/logtochannel"
import roleManage from "~/utils/Functions/rolesmanage"
import { getIGN } from "~/utils/Hypixel"
export default {
name: "forceunverify",

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import guildInfo from "./guild/info.js"
import guildMember from "./guild/member.js"
import guildTop from "./guild/top.js"
import guildInfo from "./guild/info"
import guildMember from "./guild/member"
import guildTop from "./guild/top"
export default {
name: "guild",

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { IGuildData, SubCommand } from "~/typings"
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel.js"
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,7 +1,7 @@
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { IGuildData, SubCommand } from "~/typings"
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
import { redis } from "~/utils/Illegitimate.js"
import { numberFormatter } from "~/utils/Functions/intlFormaters"
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel"
import { redis } from "~/utils/Illegitimate"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,5 +1,5 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, MessageFlags, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

@@ -1,5 +1,5 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor, instructionsgif } from "~/config/options.js"
import { devMessage, embedColor, instructionsgif } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

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

View File

@@ -1,14 +1,14 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "~/typings"
import leave from "./music/leave.js"
import nowplaying from "./music/nowplaying.js"
import pause from "./music/pause.js"
import play from "./music/play.js"
import queue from "./music/queue.js"
import repeat from "./music/repeat.js"
import skip from "./music/skip.js"
import unpause from "./music/unpause.js"
import volume from "./music/volume.js"
import leave from "./music/leave"
import nowplaying from "./music/nowplaying"
import pause from "./music/pause"
import play from "./music/play"
import queue from "./music/queue"
import repeat from "./music/repeat"
import skip from "./music/skip"
import unpause from "./music/unpause"
import volume from "./music/volume"
export default {
name: "music",

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,6 +1,6 @@
import { useMainPlayer } from "discord-player"
import { GuildMember } from "discord.js"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { QueueRepeatMode, useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const QueueRepeatModes = {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { useMainPlayer } from "discord-player"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
const cmd: SubCommand = async (interaction) => {

View File

@@ -1,5 +1,5 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

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

View File

@@ -1,9 +1,9 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { getWaitingList, removeWaitingList } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { getWaitingList, removeWaitingList } from "src/drizzle/functions"
import { devMessage, embedColor } from "~/config/options"
import { waitingListRole } from "~/config/roles"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
import logToChannel from "~/utils/Functions/logtochannel"
export default {
name: "remove",

View File

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

View File

@@ -1,5 +1,5 @@
import { ChannelType, InteractionContextType, MessageFlags, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

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

View File

@@ -9,7 +9,7 @@ import {
SlashCommandBuilder,
TextChannel
} from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
export default {

View File

@@ -8,9 +8,9 @@ import {
TextChannel,
userMention
} from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
import logToChannel from "~/utils/Functions/logtochannel"
export default {
name: "slowmode",

View File

@@ -1,11 +1,11 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import beast from "./staff/beast.js"
import help from "./staff/help.js"
import prune from "./staff/prune.js"
import removeGuildRoles from "./staff/removeguildroles.js"
import updateAll from "./staff/updateall.js"
import beast from "./staff/beast"
import help from "./staff/help"
import prune from "./staff/prune"
import removeGuildRoles from "./staff/removeguildroles"
import updateAll from "./staff/updateall"
export default {
name: "staff",

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 { devMessage, embedColor } from "~/config/options"
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "~/config/reqs"
import { SubCommand } from "~/typings"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,5 +1,5 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, MessageFlags } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { SubCommmndClient } from "~/typings"
const cmd: SubCommmndClient = async (interaction, client) => {

View File

@@ -1,7 +1,7 @@
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ComponentType } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { devMessage, embedColor } from "~/config/options"
import { SubCommand } from "~/typings"
import env from "~/utils/Env.js"
import env from "~/utils/Env"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,10 +1,10 @@
import { GuildMember } from "discord.js"
import { getVerifies } from "src/drizzle/functions.js"
import { embedColor, hypixelGuildID } from "~/config/options.js"
import { getVerifies } from "src/drizzle/functions"
import { embedColor, hypixelGuildID } from "~/config/options"
import { IGuildData, SubCommand } from "~/typings"
import env from "~/utils/Env.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild } from "~/utils/Hypixel.js"
import env from "~/utils/Env"
import roleManage from "~/utils/Functions/rolesmanage"
import { getGuild } from "~/utils/Hypixel"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

@@ -1,12 +1,12 @@
import { ChannelType, GuildMember } from "discord.js"
import { getVerifies } from "src/drizzle/functions.js"
import { embedColor, hypixelGuildID } from "~/config/options.js"
import { getVerifies } from "src/drizzle/functions"
import { embedColor, hypixelGuildID } from "~/config/options"
import { IGuildData, SubCommand } from "~/typings"
import env from "~/utils/Env.js"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
import { log } from "~/utils/Logger.js"
import env from "~/utils/Env"
import getGuildRank from "~/utils/Functions/guildrank"
import roleManage from "~/utils/Functions/rolesmanage"
import { getGuild, getIGN } from "~/utils/Hypixel"
import { log } from "~/utils/Logger"
const cmd: SubCommand = async (interaction) => {
await interaction.deferReply()

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,10 +1,10 @@
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { addVerify, getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { addVerify, getVerify } from "src/drizzle/functions"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
import { ICommand, IGuildData, IPlayerData } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
import getGuildRank from "~/utils/Functions/guildrank"
import roleManage from "~/utils/Functions/rolesmanage"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
export default {
name: "verify",

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
import { IAutocomplete } from "~/typings"
import { log } from "~/utils/Logger.js"
import { log } from "~/utils/Logger"
export default {
name: "unban",

View File

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

View File

@@ -1,11 +1,11 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, TextChannel } from "discord.js"
import { getGuildApp, removeVerify } from "src/drizzle/functions.js"
import { addWaitingList, getWaitingLists, removeWaitingList } from "src/drizzle/functions.js"
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { getGuildApp, removeVerify } from "src/drizzle/functions"
import { addWaitingList, getWaitingLists, removeWaitingList } from "src/drizzle/functions"
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options"
import { waitingListRole } from "~/config/roles"
import { IButton } from "~/typings"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
import { log } from "~/utils/Logger.js"
import { getGuild, getIGN } from "~/utils/Hypixel"
import { log } from "~/utils/Logger"
export default {
name: "guildapplicationaccept",

View File

@@ -1,11 +1,11 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
import { addGuildApp, getGuildApp } from "src/drizzle/functions.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 { addGuildApp, getGuildApp } from "src/drizzle/functions"
import { ignM, largeM, smallM } from "~/config/limitmessages"
import { applicationsChannel, embedColor } from "~/config/options"
import { guild as guildQuestions } from "~/config/questions"
import { guildRole } from "~/config/roles"
import { IButton } from "~/typings"
import applicationQuestions from "~/utils/Functions/applicationquestions.js"
import applicationQuestions from "~/utils/Functions/applicationquestions"
export default {
name: "guildapply",

View File

@@ -1,10 +1,10 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
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, leader, member, staff } from "~/config/roles.js"
import { ignM, largeM, smallM } from "~/config/limitmessages"
import { embedColor, inactivityLogChannel } from "~/config/options"
import { inactivity } from "~/config/questions"
import { beast, gm, guildRole, guildStaff, leader, member, staff } from "~/config/roles"
import { IButton } from "~/typings"
import applicationQuestions from "~/utils/Functions/applicationquestions.js"
import applicationQuestions from "~/utils/Functions/applicationquestions"
const guildRoles = [gm, leader, staff, beast, member, guildStaff, guildRole]
export default {

View File

@@ -1,6 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
import { removeStaffApp } from "src/drizzle/functions.js"
import { embedColor } from "~/config/options.js"
import { removeStaffApp } from "src/drizzle/functions"
import { embedColor } from "~/config/options"
import { IButton } from "~/typings"
export default {

View File

@@ -1,12 +1,12 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
import { addStaffApp, getSetting, getStaffApp } from "src/drizzle/functions.js"
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 { addStaffApp, getSetting, getStaffApp } from "src/drizzle/functions"
import { ignM, largeM } from "~/config/limitmessages"
import { embedColor, staffApplicationsChannel } from "~/config/options"
import { staff as staffQuestions } from "~/config/questions"
import { guildRole, guildStaff } from "~/config/roles"
import { IButton } from "~/typings"
import env from "~/utils/Env.js"
import applicationQuestions from "~/utils/Functions/applicationquestions.js"
import env from "~/utils/Env"
import applicationQuestions from "~/utils/Functions/applicationquestions"
export default {
name: "staffapply",

View File

@@ -1,8 +1,8 @@
import { MessageFlags } from "discord.js"
import { getWaitingLists, removeWaitingList } from "src/drizzle/functions.js"
import { hypixelGuildID } from "~/config/options.js"
import { getWaitingLists, removeWaitingList } from "src/drizzle/functions"
import { hypixelGuildID } from "~/config/options"
import { IButton } from "~/typings"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
import { getGuild, getIGN } from "~/utils/Hypixel"
export default {
name: "waitinglistupdate",

View File

@@ -1,6 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, Message } from "discord.js"
import { removeGuildApp } from "src/drizzle/functions.js"
import { embedColor } from "~/config/options.js"
import { removeGuildApp } from "src/drizzle/functions"
import { embedColor } from "~/config/options"
import { IModal } from "~/typings"
export default {

View File

@@ -1,6 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"
import { removeStaffApp } from "src/drizzle/functions.js"
import { embedColor } from "~/config/options.js"
import { removeStaffApp } from "src/drizzle/functions"
import { embedColor } from "~/config/options"
import { IModal } from "~/typings"
export default {

View File

@@ -1,10 +1,10 @@
import { GuildMember, MessageFlags } from "discord.js"
import { addVerify, getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { addVerify, getVerify } from "src/drizzle/functions"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
import { IModal } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
import getGuildRank from "~/utils/Functions/guildrank"
import roleManage from "~/utils/Functions/rolesmanage"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
export default {
name: "verifybox",

View File

@@ -1,6 +1,6 @@
import { drizzle } from "drizzle-orm/postgres-js"
import env from "~/utils/Env.js"
import * as schema from "./schema.js"
import env from "~/utils/Env"
import * as schema from "./schema"
const db = drizzle({
connection: {

View File

@@ -1,6 +1,6 @@
import { eq, or } from "drizzle-orm"
import db from "../db.js"
import { guildApps, InsertGuildApp } from "../schema.js"
import db from "../db"
import { guildApps, InsertGuildApp } from "../schema"
type GuildAppDBData = Partial<Pick<InsertGuildApp, "userID" | "uuid">>

View File

@@ -1,6 +1,6 @@
import { eq, or } from "drizzle-orm"
import db from "../db.js"
import { InsertSetting, settings } from "../schema.js"
import db from "../db"
import { InsertSetting, settings } from "../schema"
type SettingsDBData = Partial<Pick<InsertSetting, "name" | "value">>

View File

@@ -1,6 +1,6 @@
import { eq, or } from "drizzle-orm"
import db from "../db.js"
import { InsertStaffApp, staffApps } from "../schema.js"
import db from "../db"
import { InsertStaffApp, staffApps } from "../schema"
type StaffAppDBData = Partial<Pick<InsertStaffApp, "userID" | "uuid">>

View File

@@ -1,6 +1,6 @@
import { eq, or } from "drizzle-orm"
import db from "../db.js"
import { InsertVerify, verifies } from "../schema.js"
import db from "../db"
import { InsertVerify, verifies } from "../schema"
type VerifyDBData = Partial<Pick<InsertVerify, "userID" | "uuid">>

View File

@@ -1,6 +1,6 @@
import { eq, or } from "drizzle-orm"
import db from "../db.js"
import { InsertWaitingList, waitingLists } from "../schema.js"
import db from "../db"
import { InsertWaitingList, waitingLists } from "../schema"
type WaitingListDBData = Partial<Pick<InsertWaitingList, "userID" | "uuid">>

View File

@@ -1,10 +1,10 @@
import { TextChannel } from "discord.js"
import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "~/config/options.js"
import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "~/config/options"
import { ICron, IGuildData } from "~/typings"
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getIGN } from "~/utils/Hypixel.js"
import { client } from "~/utils/Illegitimate.js"
import { log } from "~/utils/Logger.js"
import { numberFormatter } from "~/utils/Functions/intlFormaters"
import { getGuild, getIGN } from "~/utils/Hypixel"
import { client } from "~/utils/Illegitimate"
import { log } from "~/utils/Logger"
async function guildWeekly() {
const channel = client.channels.cache.get(guildLogChannel) as TextChannel

View File

@@ -1,8 +1,8 @@
import { userMention } from "discord.js"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { Event } from "~/typings"
import { dateTimeFormatter } from "~/utils/Functions/intlFormaters.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { dateTimeFormatter } from "~/utils/Functions/intlFormaters"
import logToChannel from "~/utils/Functions/logtochannel"
const event: Event<"guildMemberAdd"> = (member) => {
if (process.env.NODE_ENV === "dev") return

View File

@@ -1,5 +1,5 @@
import { Event } from "~/typings"
import { log } from "~/utils/Logger.js"
import { log } from "~/utils/Logger"
const event: Event<"interactionCreate"> = (interaction) => {
if (interaction.isChatInputCommand()) {

View File

@@ -1,5 +1,5 @@
import { Event } from "~/typings"
import { log } from "~/utils/Logger.js"
import { log } from "~/utils/Logger"
export const once = true
const event: Event<"ready"> = (client) => {

View File

@@ -1,6 +1,6 @@
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { Event } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
import logToChannel from "~/utils/Functions/logtochannel"
export const once = true
const event: Event<"ready"> = () => {

View File

@@ -1,6 +1,6 @@
import { Guild } from "discord.js"
import { guildid } from "~/config/options.js"
import statuses from "~/config/statuses.js"
import { guildid } from "~/config/options"
import statuses from "~/config/statuses"
import { Event } from "~/typings"
export const once = true

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,9 +1,9 @@
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
import fs from "fs"
import { ICommand, IContextMenu } from "~/typings"
import { ExtendedClient } from "./Client.js"
import env from "./Env.js"
import { log } from "./Logger.js"
import { ExtendedClient } from "./Client"
import env from "./Env"
import { log } from "./Logger"
type FileType = "js" | "ts"
export default async function autoDeployCommands(fileType: FileType, client: ExtendedClient) {

View File

@@ -1,8 +1,8 @@
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/typings"
import autoDeployCommands from "./Autodeploy.js"
import env from "./Env.js"
import { log } from "./Logger.js"
import autoDeployCommands from "./Autodeploy"
import env from "./Env"
import { log } from "./Logger"
export class ExtendedClient extends Client {
commands: Collection<string, ICommand> = new Collection()

View File

@@ -1,6 +1,6 @@
import { createEnv } from "@t3-oss/env-core"
import { z } from "zod"
import { MissingEnvVarsError } from "./Classes/EnvVarError.js"
import { MissingEnvVarsError } from "./Classes/EnvVarError"
const prodEnv = createEnv({
server: {

View File

@@ -1,10 +1,10 @@
import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { IAutocomplete } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
type FileType = "js" | "ts"
export default async function loadAutocompleteEvents(client: Client, ft: FileType) {

View File

@@ -1,10 +1,10 @@
import { Events, MessageFlags } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { IButton } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
type FileType = "js" | "ts"
export default async function loadButtonEvents(client: Client, ft: FileType) {

View File

@@ -1,10 +1,10 @@
import { Events, MessageFlags } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { ICommand } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
type FileType = "js" | "ts"
export default async function loadSlashCommandsEvents(client: Client, ft: FileType) {

View File

@@ -1,10 +1,10 @@
import { Events, MessageFlags } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { IContextMenu } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
type FileType = "js" | "ts"
export default async function loadContextMenuEvents(client: Client, ft: FileType) {

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"
type FileType = "js" | "ts"
export default async function loadEvents(client: Client, ft: FileType) {

View File

@@ -1,11 +1,11 @@
import { ExtendedClient as Client } from "../Client.js"
import loadAutocompleteEvents from "./autocomplete.js"
import loadButtonEvents from "./button.js"
import loadSlashCommandsEvents from "./command.js"
import loadContextMenuEvents from "./contextmenu.js"
import loadCronEvents from "./cron.js"
import loadEvents from "./events.js"
import loadModalEvents from "./modal.js"
import { ExtendedClient as Client } from "../Client"
import loadAutocompleteEvents from "./autocomplete"
import loadButtonEvents from "./button"
import loadSlashCommandsEvents from "./command"
import loadContextMenuEvents from "./contextmenu"
import loadCronEvents from "./cron"
import loadEvents from "./events"
import loadModalEvents from "./modal"
export default async function loadAllEvents(client: Client, ft: "js" | "ts") {
await loadEvents(client, ft)

View File

@@ -1,10 +1,10 @@
import { Events, MessageFlags } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { embedColor } from "~/config/options"
import { IModal } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import { ExtendedClient as Client } from "~/utils/Client"
import logToChannel from "~/utils/Functions/logtochannel"
type FileType = "js" | "ts"
export default async function loadModalEvents(client: Client, ft: FileType) {

View File

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

View File

@@ -1,4 +1,4 @@
import roleManage from "./rolesmanage.js"
import roleManage from "./rolesmanage"
export default function getGuildRank(rank: string) {
if (rank === "Guild Master") {

View File

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

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