Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!332
This commit is contained in:
5
.swcrc
5
.swcrc
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://json.schemastore.org/swcrc",
|
"$schema": "https://swc.rs/schema.json",
|
||||||
"jsc": {
|
"jsc": {
|
||||||
"parser": {
|
"parser": {
|
||||||
"syntax": "typescript",
|
"syntax": "typescript",
|
||||||
@@ -25,7 +25,8 @@
|
|||||||
"strictMode": true,
|
"strictMode": true,
|
||||||
"noInterop": false,
|
"noInterop": false,
|
||||||
"lazy": false,
|
"lazy": false,
|
||||||
"ignoreDynamic": true
|
"ignoreDynamic": true,
|
||||||
|
"resolveFully": true
|
||||||
},
|
},
|
||||||
"minify": false,
|
"minify": false,
|
||||||
"sourceMaps": false
|
"sourceMaps": false
|
||||||
|
|||||||
@@ -29,7 +29,6 @@
|
|||||||
"db:studio": "drizzle-kit studio",
|
"db:studio": "drizzle-kit studio",
|
||||||
"db:start": "docker compose -f dev-db.yml up -d",
|
"db:start": "docker compose -f dev-db.yml up -d",
|
||||||
"db:stop": "docker compose -f dev-db.yml down",
|
"db:stop": "docker compose -f dev-db.yml down",
|
||||||
"bot:update": "tsx scripts/update-bot.ts",
|
|
||||||
"push:prod": "tsx scripts/deploy-commands.ts",
|
"push:prod": "tsx scripts/deploy-commands.ts",
|
||||||
"push:dev": "tsx scripts/dev-deploy.ts",
|
"push:dev": "tsx scripts/dev-deploy.ts",
|
||||||
"delete:dev": "tsx scripts/delete-commands.ts"
|
"delete:dev": "tsx scripts/delete-commands.ts"
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
import { REST, Routes } from "discord.js"
|
import { REST, Routes } from "discord.js"
|
||||||
import env from "../src/utils/Env"
|
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 rest = new REST({ version: "10" }).setToken(env.dev.DEVTOKEN)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
log("Started deleting application (/) commands.", "info")
|
log("Started deleting application (/) commands.", "info")
|
||||||
await rest.put(
|
await rest.put(
|
||||||
Routes.applicationGuildCommands(env.dev.devid, env.dev.guildid),
|
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
|
||||||
{ body: [] }
|
{ body: [] }
|
||||||
)
|
)
|
||||||
log("Successfully deleted application (/) commands.", "info")
|
log("Successfully deleted application (/) commands.", "info")
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
||||||
import fs from "node:fs"
|
import fs from "node:fs"
|
||||||
import { ICommand } from "../src/interfaces"
|
import { ICommand } from "../src/typings"
|
||||||
import env from "../src/utils/Env"
|
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 rest = new REST({ version: "10" }).setToken(env.prod.TOKEN)
|
||||||
|
|
||||||
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
||||||
@@ -25,7 +25,7 @@ try {
|
|||||||
log(commandsString.join("\n"), "info", { type: "preset", color: "lavender" })
|
log(commandsString.join("\n"), "info", { type: "preset", color: "lavender" })
|
||||||
|
|
||||||
await rest.put(
|
await rest.put(
|
||||||
Routes.applicationCommands(env.dev.clientid),
|
Routes.applicationCommands(env.dev.CLIENTID),
|
||||||
{ body: commands }
|
{ body: commands }
|
||||||
).then(() => {
|
).then(() => {
|
||||||
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info", { type: "preset", color: "green" })
|
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info", { type: "preset", color: "green" })
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
import { REST, RESTPutAPIApplicationCommandsJSONBody, Routes } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import { ICommand } from "../src/interfaces"
|
import { ICommand } from "../src/typings"
|
||||||
import env from "../src/utils/Env"
|
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 rest = new REST({ version: "10" }).setToken(env.dev.DEVTOKEN)
|
||||||
|
|
||||||
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
const commands: RESTPutAPIApplicationCommandsJSONBody = []
|
||||||
@@ -26,7 +26,7 @@ try {
|
|||||||
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
|
log(`Started refreshing ${commands.length} application (/) commands.`, "info")
|
||||||
|
|
||||||
await rest.put(
|
await rest.put(
|
||||||
Routes.applicationGuildCommands(env.dev.devid, env.dev.guildid),
|
Routes.applicationGuildCommands(env.dev.DEVID, env.dev.GUILDID),
|
||||||
{ body: commands }
|
{ body: commands }
|
||||||
).then(() => {
|
).then(() => {
|
||||||
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")
|
log(`Successfully reloaded ${commands.length} application (/) commands.`, "info")
|
||||||
|
|||||||
@@ -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)
|
|
||||||
})
|
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits, userMention } from "discord.js"
|
import { ApplicationCommandType, ContextMenuCommandBuilder, InteractionContextType, MessageFlags, PermissionFlagsBits, userMention } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { waitingListRole } from "~/config/roles.js"
|
import { waitingListRole } from "~/config/roles"
|
||||||
import { IContextMenu } from "~/typings"
|
import { IContextMenu } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Update User",
|
name: "Update User",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { anilist } from "anilist"
|
import { anilist } from "anilist"
|
||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { admin, helper } from "~/config/roles.js"
|
import { admin, helper } from "~/config/roles"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ban",
|
name: "ban",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
|||||||
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 { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
const require = createRequire(import.meta.url)
|
const require = createRequire(import.meta.url)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
|
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs"
|
||||||
import { ICommand } from "~/typings"
|
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 {
|
export default {
|
||||||
name: "check",
|
name: "check",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { channelMention, InteractionContextType, MessageFlags, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
|
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 { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "clear",
|
name: "clear",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||||
import { addSetting, getSetting, updateSetting } from "src/drizzle/functions.js"
|
import { addSetting, getSetting, updateSetting } from "src/drizzle/functions"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
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 { ICommand } from "~/typings"
|
||||||
import ban from "./counting/ban.js"
|
import ban from "./counting/ban"
|
||||||
import unban from "./counting/unban.js"
|
import unban from "./counting/unban"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "counting",
|
name: "counting",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { GuildMember, userMention } from "discord.js"
|
import { GuildMember, userMention } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { countingBanned } from "~/config/roles.js"
|
import { countingBanned } from "~/config/roles"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { GuildMember, userMention } from "discord.js"
|
import { GuildMember, userMention } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { countingBanned } from "~/config/roles.js"
|
import { countingBanned } from "~/config/roles"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import { getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
|
import { getHeadURL, getIGN, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "find",
|
name: "find",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getVerify, removeVerify } from "src/drizzle/functions.js"
|
import { getVerify, removeVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getIGN } from "~/utils/Hypixel.js"
|
import { getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "forceunverify",
|
name: "forceunverify",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { waitingListRole } from "~/config/roles.js"
|
import { waitingListRole } from "~/config/roles"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "forceupdate",
|
name: "forceupdate",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { addVerify, getVerify } from "src/drizzle/functions.js"
|
import { addVerify, getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "forceverify",
|
name: "forceverify",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import guildInfo from "./guild/info.js"
|
import guildInfo from "./guild/info"
|
||||||
import guildMember from "./guild/member.js"
|
import guildMember from "./guild/member"
|
||||||
import guildTop from "./guild/top.js"
|
import guildTop from "./guild/top"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "guild",
|
name: "guild",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { IGuildData, SubCommand } from "~/typings"
|
import { IGuildData, SubCommand } from "~/typings"
|
||||||
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters"
|
||||||
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters"
|
||||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { IGuildData, SubCommand } from "~/typings"
|
import { IGuildData, SubCommand } from "~/typings"
|
||||||
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
import { numberFormatter } from "~/utils/Functions/intlFormaters"
|
||||||
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||||
import { redis } from "~/utils/Illegitimate.js"
|
import { redis } from "~/utils/Illegitimate"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, MessageFlags, SlashCommandBuilder } from "discord.js"
|
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"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
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"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { admin, helper } from "~/config/roles.js"
|
import { admin, helper } from "~/config/roles"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "kick",
|
name: "kick",
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import leave from "./music/leave.js"
|
import leave from "./music/leave"
|
||||||
import nowplaying from "./music/nowplaying.js"
|
import nowplaying from "./music/nowplaying"
|
||||||
import pause from "./music/pause.js"
|
import pause from "./music/pause"
|
||||||
import play from "./music/play.js"
|
import play from "./music/play"
|
||||||
import queue from "./music/queue.js"
|
import queue from "./music/queue"
|
||||||
import repeat from "./music/repeat.js"
|
import repeat from "./music/repeat"
|
||||||
import skip from "./music/skip.js"
|
import skip from "./music/skip"
|
||||||
import unpause from "./music/unpause.js"
|
import unpause from "./music/unpause"
|
||||||
import volume from "./music/volume.js"
|
import volume from "./music/volume"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "music",
|
name: "music",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { GuildMember } from "discord.js"
|
import { GuildMember } from "discord.js"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { QueueRepeatMode, useMainPlayer } from "discord-player"
|
import { QueueRepeatMode, useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const QueueRepeatModes = {
|
const QueueRepeatModes = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { useMainPlayer } from "discord-player"
|
import { useMainPlayer } from "discord-player"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { SubCommand } from "~/typings"
|
import { SubCommand } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder, User } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder, User } from "discord.js"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "pp",
|
name: "pp",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getWaitingList, removeWaitingList } from "src/drizzle/functions.js"
|
import { getWaitingList, removeWaitingList } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { waitingListRole } from "~/config/roles.js"
|
import { waitingListRole } from "~/config/roles"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "remove",
|
name: "remove",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
|
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ChannelType, InteractionContextType, MessageFlags, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
|
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"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { GuildMember, InteractionContextType, MessageFlags, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
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 { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "setnick",
|
name: "setnick",
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
SlashCommandBuilder,
|
SlashCommandBuilder,
|
||||||
TextChannel
|
TextChannel
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import {
|
|||||||
TextChannel,
|
TextChannel,
|
||||||
userMention
|
userMention
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "slowmode",
|
name: "slowmode",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
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 { ICommand } from "~/typings"
|
||||||
import beast from "./staff/beast.js"
|
import beast from "./staff/beast"
|
||||||
import help from "./staff/help.js"
|
import help from "./staff/help"
|
||||||
import prune from "./staff/prune.js"
|
import prune from "./staff/prune"
|
||||||
import removeGuildRoles from "./staff/removeguildroles.js"
|
import removeGuildRoles from "./staff/removeguildroles"
|
||||||
import updateAll from "./staff/updateall.js"
|
import updateAll from "./staff/updateall"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "staff",
|
name: "staff",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "~/config/reqs.js"
|
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "~/config/reqs"
|
||||||
import { SubCommand } from "~/typings"
|
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) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, MessageFlags } from "discord.js"
|
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"
|
import { SubCommmndClient } from "~/typings"
|
||||||
|
|
||||||
const cmd: SubCommmndClient = async (interaction, client) => {
|
const cmd: SubCommmndClient = async (interaction, client) => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ComponentType } from "discord.js"
|
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 { SubCommand } from "~/typings"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { GuildMember } from "discord.js"
|
import { GuildMember } from "discord.js"
|
||||||
import { getVerifies } from "src/drizzle/functions.js"
|
import { getVerifies } from "src/drizzle/functions"
|
||||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
import { embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { IGuildData, SubCommand } from "~/typings"
|
import { IGuildData, SubCommand } from "~/typings"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild } from "~/utils/Hypixel.js"
|
import { getGuild } from "~/utils/Hypixel"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { ChannelType, GuildMember } from "discord.js"
|
import { ChannelType, GuildMember } from "discord.js"
|
||||||
import { getVerifies } from "src/drizzle/functions.js"
|
import { getVerifies } from "src/drizzle/functions"
|
||||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
import { embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { IGuildData, SubCommand } from "~/typings"
|
import { IGuildData, SubCommand } from "~/typings"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN } from "~/utils/Hypixel"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
const cmd: SubCommand = async (interaction) => {
|
const cmd: SubCommand = async (interaction) => {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import ms from "ms"
|
import ms from "ms"
|
||||||
import prettyMs from "pretty-ms"
|
import prettyMs from "pretty-ms"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "timeout",
|
name: "timeout",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, User, userMention } from "discord.js"
|
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 { ICommand } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { waitingListRole } from "~/config/roles.js"
|
import { waitingListRole } from "~/config/roles"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "update",
|
name: "update",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import { formatUuid, getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
|
import { formatUuid, getHeadURL, getIGN, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "uuid",
|
name: "uuid",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||||
import { addVerify, getVerify } from "src/drizzle/functions.js"
|
import { addVerify, getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { ICommand, IGuildData, IPlayerData } from "~/typings"
|
import { ICommand, IGuildData, IPlayerData } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "verify",
|
name: "verify",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
|
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
import { getHeadURL, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "whoami",
|
name: "whoami",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { getVerify } from "src/drizzle/functions.js"
|
import { getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
import { getHeadURL, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "whois",
|
name: "whois",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { IAutocomplete } from "~/typings"
|
import { IAutocomplete } from "~/typings"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { getGuildApp } from "src/drizzle/functions.js"
|
import { getGuildApp } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor } from "~/config/options.js"
|
import { devMessage, embedColor } from "~/config/options"
|
||||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
|
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs"
|
||||||
import { IButton } from "~/typings"
|
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 {
|
export default {
|
||||||
name: "checkstats",
|
name: "checkstats",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, TextChannel } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, TextChannel } from "discord.js"
|
||||||
import { getGuildApp, removeVerify } from "src/drizzle/functions.js"
|
import { getGuildApp, removeVerify } from "src/drizzle/functions"
|
||||||
import { addWaitingList, getWaitingLists, removeWaitingList } from "src/drizzle/functions.js"
|
import { addWaitingList, getWaitingLists, removeWaitingList } from "src/drizzle/functions"
|
||||||
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options.js"
|
import { embedColor, hypixelGuildID, waitingListChannel, waitingListMessage } from "~/config/options"
|
||||||
import { waitingListRole } from "~/config/roles.js"
|
import { waitingListRole } from "~/config/roles"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN } from "~/utils/Hypixel"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "guildapplicationaccept",
|
name: "guildapplicationaccept",
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||||
import { addGuildApp, getGuildApp } from "src/drizzle/functions.js"
|
import { addGuildApp, getGuildApp } from "src/drizzle/functions"
|
||||||
import { ignM, largeM, smallM } from "~/config/limitmessages.js"
|
import { ignM, largeM, smallM } from "~/config/limitmessages"
|
||||||
import { applicationsChannel, embedColor } from "~/config/options.js"
|
import { applicationsChannel, embedColor } from "~/config/options"
|
||||||
import { guild as guildQuestions } from "~/config/questions.js"
|
import { guild as guildQuestions } from "~/config/questions"
|
||||||
import { guildRole } from "~/config/roles.js"
|
import { guildRole } from "~/config/roles"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
import applicationQuestions from "~/utils/Functions/applicationquestions.js"
|
import applicationQuestions from "~/utils/Functions/applicationquestions"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "guildapply",
|
name: "guildapply",
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||||
import { ignM, largeM, smallM } from "~/config/limitmessages.js"
|
import { ignM, largeM, smallM } from "~/config/limitmessages"
|
||||||
import { embedColor, inactivityLogChannel } from "~/config/options.js"
|
import { embedColor, inactivityLogChannel } from "~/config/options"
|
||||||
import { inactivity } from "~/config/questions.js"
|
import { inactivity } from "~/config/questions"
|
||||||
import { beast, gm, guildRole, guildStaff, leader, member, staff } from "~/config/roles.js"
|
import { beast, gm, guildRole, guildStaff, leader, member, staff } from "~/config/roles"
|
||||||
import { IButton } from "~/typings"
|
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]
|
const guildRoles = [gm, leader, staff, beast, member, guildStaff, guildRole]
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||||
import { removeStaffApp } from "src/drizzle/functions.js"
|
import { removeStaffApp } from "src/drizzle/functions"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, GuildMember, MessageFlags, TextChannel } from "discord.js"
|
||||||
import { addStaffApp, getSetting, getStaffApp } from "src/drizzle/functions.js"
|
import { addStaffApp, getSetting, getStaffApp } from "src/drizzle/functions"
|
||||||
import { ignM, largeM } from "~/config/limitmessages.js"
|
import { ignM, largeM } from "~/config/limitmessages"
|
||||||
import { embedColor, staffApplicationsChannel } from "~/config/options.js"
|
import { embedColor, staffApplicationsChannel } from "~/config/options"
|
||||||
import { staff as staffQuestions } from "~/config/questions.js"
|
import { staff as staffQuestions } from "~/config/questions"
|
||||||
import { guildRole, guildStaff } from "~/config/roles.js"
|
import { guildRole, guildStaff } from "~/config/roles"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
import applicationQuestions from "~/utils/Functions/applicationquestions.js"
|
import applicationQuestions from "~/utils/Functions/applicationquestions"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "staffapply",
|
name: "staffapply",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { MessageFlags } from "discord.js"
|
import { MessageFlags } from "discord.js"
|
||||||
import { getWaitingLists, removeWaitingList } from "src/drizzle/functions.js"
|
import { getWaitingLists, removeWaitingList } from "src/drizzle/functions"
|
||||||
import { hypixelGuildID } from "~/config/options.js"
|
import { hypixelGuildID } from "~/config/options"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "waitinglistupdate",
|
name: "waitinglistupdate",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, Message } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, GuildMember, Message } from "discord.js"
|
||||||
import { removeGuildApp } from "src/drizzle/functions.js"
|
import { removeGuildApp } from "src/drizzle/functions"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IModal } from "~/typings"
|
import { IModal } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder } from "discord.js"
|
||||||
import { removeStaffApp } from "src/drizzle/functions.js"
|
import { removeStaffApp } from "src/drizzle/functions"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IModal } from "~/typings"
|
import { IModal } from "~/typings"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { GuildMember, MessageFlags } from "discord.js"
|
import { GuildMember, MessageFlags } from "discord.js"
|
||||||
import { addVerify, getVerify } from "src/drizzle/functions.js"
|
import { addVerify, getVerify } from "src/drizzle/functions"
|
||||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
import { devMessage, embedColor, hypixelGuildID } from "~/config/options"
|
||||||
import { IModal } from "~/typings"
|
import { IModal } from "~/typings"
|
||||||
import getGuildRank from "~/utils/Functions/guildrank.js"
|
import getGuildRank from "~/utils/Functions/guildrank"
|
||||||
import roleManage from "~/utils/Functions/rolesmanage.js"
|
import roleManage from "~/utils/Functions/rolesmanage"
|
||||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "verifybox",
|
name: "verifybox",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { drizzle } from "drizzle-orm/postgres-js"
|
import { drizzle } from "drizzle-orm/postgres-js"
|
||||||
import env from "~/utils/Env.js"
|
import env from "~/utils/Env"
|
||||||
import * as schema from "./schema.js"
|
import * as schema from "./schema"
|
||||||
|
|
||||||
const db = drizzle({
|
const db = drizzle({
|
||||||
connection: {
|
connection: {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { eq, or } from "drizzle-orm"
|
import { eq, or } from "drizzle-orm"
|
||||||
import db from "../db.js"
|
import db from "../db"
|
||||||
import { guildApps, InsertGuildApp } from "../schema.js"
|
import { guildApps, InsertGuildApp } from "../schema"
|
||||||
|
|
||||||
type GuildAppDBData = Partial<Pick<InsertGuildApp, "userID" | "uuid">>
|
type GuildAppDBData = Partial<Pick<InsertGuildApp, "userID" | "uuid">>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { eq, or } from "drizzle-orm"
|
import { eq, or } from "drizzle-orm"
|
||||||
import db from "../db.js"
|
import db from "../db"
|
||||||
import { InsertSetting, settings } from "../schema.js"
|
import { InsertSetting, settings } from "../schema"
|
||||||
|
|
||||||
type SettingsDBData = Partial<Pick<InsertSetting, "name" | "value">>
|
type SettingsDBData = Partial<Pick<InsertSetting, "name" | "value">>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { eq, or } from "drizzle-orm"
|
import { eq, or } from "drizzle-orm"
|
||||||
import db from "../db.js"
|
import db from "../db"
|
||||||
import { InsertStaffApp, staffApps } from "../schema.js"
|
import { InsertStaffApp, staffApps } from "../schema"
|
||||||
|
|
||||||
type StaffAppDBData = Partial<Pick<InsertStaffApp, "userID" | "uuid">>
|
type StaffAppDBData = Partial<Pick<InsertStaffApp, "userID" | "uuid">>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { eq, or } from "drizzle-orm"
|
import { eq, or } from "drizzle-orm"
|
||||||
import db from "../db.js"
|
import db from "../db"
|
||||||
import { InsertVerify, verifies } from "../schema.js"
|
import { InsertVerify, verifies } from "../schema"
|
||||||
|
|
||||||
type VerifyDBData = Partial<Pick<InsertVerify, "userID" | "uuid">>
|
type VerifyDBData = Partial<Pick<InsertVerify, "userID" | "uuid">>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { eq, or } from "drizzle-orm"
|
import { eq, or } from "drizzle-orm"
|
||||||
import db from "../db.js"
|
import db from "../db"
|
||||||
import { InsertWaitingList, waitingLists } from "../schema.js"
|
import { InsertWaitingList, waitingLists } from "../schema"
|
||||||
|
|
||||||
type WaitingListDBData = Partial<Pick<InsertWaitingList, "userID" | "uuid">>
|
type WaitingListDBData = Partial<Pick<InsertWaitingList, "userID" | "uuid">>
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { TextChannel } from "discord.js"
|
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 { ICron, IGuildData } from "~/typings"
|
||||||
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
import { numberFormatter } from "~/utils/Functions/intlFormaters"
|
||||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
import { getGuild, getIGN } from "~/utils/Hypixel"
|
||||||
import { client } from "~/utils/Illegitimate.js"
|
import { client } from "~/utils/Illegitimate"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
async function guildWeekly() {
|
async function guildWeekly() {
|
||||||
const channel = client.channels.cache.get(guildLogChannel) as TextChannel
|
const channel = client.channels.cache.get(guildLogChannel) as TextChannel
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { userMention } from "discord.js"
|
import { userMention } from "discord.js"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { Event } from "~/typings"
|
import { Event } from "~/typings"
|
||||||
import { dateTimeFormatter } from "~/utils/Functions/intlFormaters.js"
|
import { dateTimeFormatter } from "~/utils/Functions/intlFormaters"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
const event: Event<"guildMemberAdd"> = (member) => {
|
const event: Event<"guildMemberAdd"> = (member) => {
|
||||||
if (process.env.NODE_ENV === "dev") return
|
if (process.env.NODE_ENV === "dev") return
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Event } from "~/typings"
|
import { Event } from "~/typings"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
const event: Event<"interactionCreate"> = (interaction) => {
|
const event: Event<"interactionCreate"> = (interaction) => {
|
||||||
if (interaction.isChatInputCommand()) {
|
if (interaction.isChatInputCommand()) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Event } from "~/typings"
|
import { Event } from "~/typings"
|
||||||
import { log } from "~/utils/Logger.js"
|
import { log } from "~/utils/Logger"
|
||||||
|
|
||||||
export const once = true
|
export const once = true
|
||||||
const event: Event<"ready"> = (client) => {
|
const event: Event<"ready"> = (client) => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { Event } from "~/typings"
|
import { Event } from "~/typings"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
|
|
||||||
export const once = true
|
export const once = true
|
||||||
const event: Event<"ready"> = () => {
|
const event: Event<"ready"> = () => {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Guild } from "discord.js"
|
import { Guild } from "discord.js"
|
||||||
import { guildid } from "~/config/options.js"
|
import { guildid } from "~/config/options"
|
||||||
import statuses from "~/config/statuses.js"
|
import statuses from "~/config/statuses"
|
||||||
import { Event } from "~/typings"
|
import { Event } from "~/typings"
|
||||||
|
|
||||||
export const once = true
|
export const once = true
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
import { Illegitimate } from "~/utils/Illegitimate.js"
|
import { Illegitimate } from "~/utils/Illegitimate"
|
||||||
|
|
||||||
new Illegitimate().start()
|
new Illegitimate().start()
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
export interface IAutocomplete {
|
export interface IAutocomplete {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
export interface IButton {
|
export interface IButton {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
export interface ICommand {
|
export interface ICommand {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
export interface IContextMenu {
|
export interface IContextMenu {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
export interface IModal {
|
export interface IModal {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
|
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import { ICommand, IContextMenu } from "~/typings"
|
import { ICommand, IContextMenu } from "~/typings"
|
||||||
import { ExtendedClient } from "./Client.js"
|
import { ExtendedClient } from "./Client"
|
||||||
import env from "./Env.js"
|
import env from "./Env"
|
||||||
import { log } from "./Logger.js"
|
import { log } from "./Logger"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function autoDeployCommands(fileType: FileType, client: ExtendedClient) {
|
export default async function autoDeployCommands(fileType: FileType, client: ExtendedClient) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
||||||
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/typings"
|
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/typings"
|
||||||
import autoDeployCommands from "./Autodeploy.js"
|
import autoDeployCommands from "./Autodeploy"
|
||||||
import env from "./Env.js"
|
import env from "./Env"
|
||||||
import { log } from "./Logger.js"
|
import { log } from "./Logger"
|
||||||
|
|
||||||
export class ExtendedClient extends Client {
|
export class ExtendedClient extends Client {
|
||||||
commands: Collection<string, ICommand> = new Collection()
|
commands: Collection<string, ICommand> = new Collection()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { createEnv } from "@t3-oss/env-core"
|
import { createEnv } from "@t3-oss/env-core"
|
||||||
import { z } from "zod"
|
import { z } from "zod"
|
||||||
import { MissingEnvVarsError } from "./Classes/EnvVarError.js"
|
import { MissingEnvVarsError } from "./Classes/EnvVarError"
|
||||||
|
|
||||||
const prodEnv = createEnv({
|
const prodEnv = createEnv({
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IAutocomplete } from "~/typings"
|
import { IAutocomplete } from "~/typings"
|
||||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
import { ExtendedClient as Client } from "~/utils/Client"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadAutocompleteEvents(client: Client, ft: FileType) {
|
export default async function loadAutocompleteEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Events, MessageFlags } from "discord.js"
|
import { Events, MessageFlags } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IButton } from "~/typings"
|
import { IButton } from "~/typings"
|
||||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
import { ExtendedClient as Client } from "~/utils/Client"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadButtonEvents(client: Client, ft: FileType) {
|
export default async function loadButtonEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Events, MessageFlags } from "discord.js"
|
import { Events, MessageFlags } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { ICommand } from "~/typings"
|
import { ICommand } from "~/typings"
|
||||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
import { ExtendedClient as Client } from "~/utils/Client"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadSlashCommandsEvents(client: Client, ft: FileType) {
|
export default async function loadSlashCommandsEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Events, MessageFlags } from "discord.js"
|
import { Events, MessageFlags } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IContextMenu } from "~/typings"
|
import { IContextMenu } from "~/typings"
|
||||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
import { ExtendedClient as Client } from "~/utils/Client"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadContextMenuEvents(client: Client, ft: FileType) {
|
export default async function loadContextMenuEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -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"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadEvents(client: Client, ft: FileType) {
|
export default async function loadEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client.js"
|
import { ExtendedClient as Client } from "../Client"
|
||||||
import loadAutocompleteEvents from "./autocomplete.js"
|
import loadAutocompleteEvents from "./autocomplete"
|
||||||
import loadButtonEvents from "./button.js"
|
import loadButtonEvents from "./button"
|
||||||
import loadSlashCommandsEvents from "./command.js"
|
import loadSlashCommandsEvents from "./command"
|
||||||
import loadContextMenuEvents from "./contextmenu.js"
|
import loadContextMenuEvents from "./contextmenu"
|
||||||
import loadCronEvents from "./cron.js"
|
import loadCronEvents from "./cron"
|
||||||
import loadEvents from "./events.js"
|
import loadEvents from "./events"
|
||||||
import loadModalEvents from "./modal.js"
|
import loadModalEvents from "./modal"
|
||||||
|
|
||||||
export default async function loadAllEvents(client: Client, ft: "js" | "ts") {
|
export default async function loadAllEvents(client: Client, ft: "js" | "ts") {
|
||||||
await loadEvents(client, ft)
|
await loadEvents(client, ft)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Events, MessageFlags } from "discord.js"
|
import { Events, MessageFlags } from "discord.js"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { IModal } from "~/typings"
|
import { IModal } from "~/typings"
|
||||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
import { ExtendedClient as Client } from "~/utils/Client"
|
||||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
import logToChannel from "~/utils/Functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export default async function loadModalEvents(client: Client, ft: FileType) {
|
export default async function loadModalEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Collection, EmbedBuilder, GuildMember, Message } from "discord.js"
|
import { Collection, EmbedBuilder, GuildMember, Message } from "discord.js"
|
||||||
import { embedColor } from "~/config/options.js"
|
import { embedColor } from "~/config/options"
|
||||||
import { getUUID } from "~/utils/Hypixel.js"
|
import { getUUID } from "~/utils/Hypixel"
|
||||||
|
|
||||||
const tooLong = new EmbedBuilder()
|
const tooLong = new EmbedBuilder()
|
||||||
.setDescription("You took too long to respond.")
|
.setDescription("You took too long to respond.")
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import roleManage from "./rolesmanage.js"
|
import roleManage from "./rolesmanage"
|
||||||
|
|
||||||
export default function getGuildRank(rank: string) {
|
export default function getGuildRank(rank: string) {
|
||||||
if (rank === "Guild Master") {
|
if (rank === "Guild Master") {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
|
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
|
||||||
import { botLogChannel, devLogChannel, errorLogChannel, guildid, guildLogChannel, moderationLogChannel, onlineLogChannel } from "~/config/options.js"
|
import { botLogChannel, devLogChannel, errorLogChannel, guildid, guildLogChannel, moderationLogChannel, onlineLogChannel } from "~/config/options"
|
||||||
import { client } from "~/utils/Illegitimate.js"
|
import { client } from "~/utils/Illegitimate"
|
||||||
import { log } from "../Logger.js"
|
import { log } from "../Logger"
|
||||||
|
|
||||||
const channels = {
|
const channels = {
|
||||||
online: onlineLogChannel,
|
online: onlineLogChannel,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user