Added dprint and formatted file to it

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-09-06 22:57:15 +02:00
parent 55e1cf7cdf
commit f389209e21
106 changed files with 398 additions and 395 deletions

View File

@@ -1,7 +1,7 @@
import { anilist } from "anilist"
import { devMessage, embedColor } from "config/options.js"
import { SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { devMessage, embedColor } from "config/options.js"
import { anilist } from "anilist"
import { capitalizeFirstLetter, removeIndents } from "utils/functions/funcs.js"
export default {

View File

@@ -1,9 +1,9 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js"
import { devMessage, embedColor } from "config/options.js"
import { admin, helper } from "config/roles.js"
import { embedColor, devMessage } from "config/options.js"
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel.js"
import { removeIndents } from "utils/functions/funcs.js"
import logToChannel from "utils/functions/logtochannel.js"
export default {
name: "ban",
@@ -36,7 +36,7 @@ export default {
{ name: "4 days", value: 4 },
{ name: "5 days", value: 5 },
{ name: "6 days", value: 6 },
{ name: "7 days", value: 7 },
{ name: "7 days", value: 7 }
)
)
.setDefaultMemberPermissions(PermissionFlagsBits.BanMembers)
@@ -136,5 +136,5 @@ export default {
}
}]
})
},
}
} as ICommand

View File

@@ -1,11 +1,11 @@
import { execSync } from "child_process"
import { devMessage, embedColor } from "config/options.js"
import { SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { embedColor, devMessage } from "config/options.js"
import { createRequire } from "node:module"
import os from "os"
import prettyMs from "pretty-ms"
import { execSync } from "child_process"
import { removeIndents } from "utils/functions/funcs.js"
import { createRequire } from "node:module"
const require = createRequire(import.meta.url)
const { dependencies, devDependencies } = require("../../package.json")
@@ -56,8 +56,8 @@ export default {
__**Project**__
> **Node Version:** \`${process.version}\`
> **Typescript Version:** \`${(castedDevDeps.typescript).replace("^", "")}\`
> **Discord.js Version:** \`${(castedDeps["discord.js"]).replace("^", "")}\`
> **Typescript Version:** \`${castedDevDeps.typescript.replace("^", "")}\`
> **Discord.js Version:** \`${castedDeps["discord.js"].replace("^", "")}\`
> **Dependencies (${Object.keys(castedDeps).length}):** \`${deps}\`
> **Dev Dependencies (${Object.keys(castedDevDeps).length}):** \`${devDeps}\`
> **Uptime:** \`${prettyMs(client.uptime!, { verbose: true })}\`
@@ -69,13 +69,13 @@ export default {
> **Roles:** \`${client.guilds.cache.reduce((a, b) => a + b.roles.cache.size, 0)}\`
`),
thumbnail: {
url: client.user!.avatarURL() || "",
url: client.user!.avatarURL() || ""
},
color: embedColor,
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL() || undefined,
},
icon_url: interaction.guild!.iconURL() || undefined
}
}]
})
}

View File

@@ -1,8 +1,8 @@
import { devMessage, embedColor } from "config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
import { SlashCommandBuilder } from "discord.js"
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.js"
import { embedColor, devMessage } from "config/options.js"
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
import { ICommand } from "interfaces"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "utils/Hypixel.js"
export default {
name: "check",
@@ -202,7 +202,7 @@ export default {
" / " + duelswins.toString() + "`\n" +
"**➺ WLR:** `" + hsduelswlr.toFixed(2).toString() +
" / " + duelswlr.toString() + "`\n" +
"**➺ KDR:** `" + hsduelskd.toFixed(2).toString() + "`",
"**➺ KDR:** `" + hsduelskd.toFixed(2).toString() + "`"
})
} else {
statsFields.push({

View File

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

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor } from "config/options.js"
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import settings from "schemas/settingsTag.js"

View File

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

View File

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

View File

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

View File

@@ -1,11 +1,11 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { embedColor, devMessage } from "config/options.js"
import verify from "schemas/verifyTag.js"
import { devMessage, embedColor } from "config/options.js"
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import roleManage from "utils/functions/rolesmanage.js"
import logToChannel from "utils/functions/logtochannel.js"
import { getIGN } from "utils/Hypixel.js"
import verify from "schemas/verifyTag.js"
import { removeIndents } from "utils/functions/funcs.js"
import logToChannel from "utils/functions/logtochannel.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getIGN } from "utils/Hypixel.js"
export default {
name: "forceunverify",

View File

@@ -1,11 +1,11 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
import { hypixelGuildID, embedColor, devMessage } from "config/options.js"
import verify from "schemas/verifyTag.js"
import { ICommand } from "interfaces"
import roleManage from "utils/functions/rolesmanage.js"
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import verify from "schemas/verifyTag.js"
import { removeIndents } from "utils/functions/funcs.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
export default {
name: "forceupdate",

View File

@@ -1,11 +1,11 @@
import { SlashCommandBuilder, PermissionFlagsBits, GuildMember, userMention } from "discord.js"
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
import { embedColor, hypixelGuildID, devMessage } from "config/options.js"
import verify from "schemas/verifyTag.js"
import roleManage from "utils/functions/rolesmanage.js"
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel.js"
import verify from "schemas/verifyTag.js"
import { removeIndents } from "utils/functions/funcs.js"
import logToChannel from "utils/functions/logtochannel.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
export default {
name: "forceverify",
@@ -43,8 +43,10 @@ export default {
}
if (!user) {
interaction.editReply("Please provide a user to force verify.\n" +
"This can also mean the user is not in the server.")
interaction.editReply(
"Please provide a user to force verify.\n" +
"This can also mean the user is not in the server."
)
return
}
@@ -161,7 +163,7 @@ export default {
await verify.create({
userID: user.user.id,
uuid: uuid,
uuid: uuid
})
await logToChannel("mod", {

View File

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

View File

@@ -1,7 +1,7 @@
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel.js"
import { embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor } from "config/options.js"
import { ChatInputCommandInteraction } from "discord.js"
import { IGuildData } from "interfaces"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "utils/Hypixel.js"
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
@@ -118,8 +118,7 @@ export default async function guildInfo(interaction: ChatInputCommandInteraction
const guildCreatedMinute = guildCreated.getMinutes()
const guildCreatedSecond = guildCreated.getSeconds()
const guildCreatedTime =
guildCreatedDate + "." +
const guildCreatedTime = guildCreatedDate + "." +
guildCreatedMonth + "." +
guildCreatedYear + " " +
guildCreatedHour + ":" +
@@ -132,7 +131,9 @@ export default async function guildInfo(interaction: ChatInputCommandInteraction
const guildRanks = guildRanksUnsorted.map(r => "**➺ " + r.name + "** `[" + r.tag + "]`").join("\n")
const allGuildMembersWeeklyXP = guildMembers.map(member => member.expHistory)
const guildMembersWeeklyXP = allGuildMembersWeeklyXP.map(member => { return Object.values(member).reduce((a, b) => a + b, 0) })
const guildMembersWeeklyXP = allGuildMembersWeeklyXP.map(member => {
return Object.values(member).reduce((a, b) => a + b, 0)
})
const totalGuildMembersWeeklyXPUnformatted = guildMembersWeeklyXP.reduce((a, b) => a + b, 0)
const totalGuildMembersWeeklyXP = new Intl.NumberFormat("en-US").format(totalGuildMembersWeeklyXPUnformatted)

View File

@@ -1,6 +1,6 @@
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
import { embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor } from "config/options.js"
import { ChatInputCommandInteraction } from "discord.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
@@ -118,8 +118,7 @@ export default async function guildMember(interaction: ChatInputCommandInteracti
const guildMemberJoinMinutes = guildMemberJoinTime.getMinutes()
const guildMemberJoinSeconds = guildMemberJoinTime.getSeconds()
const guildMemberJoin =
guildMemberJoinDate + "." +
const guildMemberJoin = guildMemberJoinDate + "." +
guildMemberJoinMonth + "." +
guildMemberJoinYear + " " +
guildMemberJoinHours + ":" +

View File

@@ -1,7 +1,7 @@
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel.js"
import { embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor } from "config/options.js"
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
import { IGuildData } from "interfaces"
import { getGuild, getIGN, getPlayer, getUUID } from "utils/Hypixel.js"
import { redis } from "utils/Illegitimate.js"
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
@@ -143,8 +143,8 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
amount = 1
}
type GuildTopData = { ign: string; uuid: string }[]
type NewList = { name: string; value: string; inline: boolean }[]
type GuildTopData = { ign: string, uuid: string }[]
type NewList = { name: string, value: string, inline: boolean }[]
let cacheStatus: boolean
let guildData: GuildTopData = []

View File

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

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor, devMessage, instructionsgif } from "config/options.js"
import { devMessage, embedColor, instructionsgif } from "config/options.js"
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { removeIndents } from "utils/functions/funcs.js"
@@ -36,7 +36,7 @@ export default {
icon_url: interaction.guild!.iconURL() || undefined
},
image: {
url: instructionsgif,
url: instructionsgif
}
}]
})

View File

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

View File

@@ -1,13 +1,13 @@
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import play from "./music/play.js"
import leave from "./music/leave.js"
import queue from "./music/queue.js"
import volume from "./music/volume.js"
import skip from "./music/skip.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 skip from "./music/skip.js"
import unpause from "./music/unpause.js"
import volume from "./music/volume.js"
export default {
name: "music",
@@ -28,7 +28,9 @@ export default {
.setName("query")
.setDescription("The song to play")
.setAutocomplete(true)
.setRequired(true)))
.setRequired(true)
)
)
.addSubcommand(subcommand =>
subcommand
.setName("volume")
@@ -39,7 +41,9 @@ export default {
.setDescription("The volume to set")
.setMinValue(1)
.setMaxValue(100)
.setRequired(true)))
.setRequired(true)
)
)
.addSubcommand(subcommand =>
subcommand
.setName("skip")
@@ -47,27 +51,34 @@ export default {
.addNumberOption(option =>
option
.setName("amount")
.setDescription("The amount of songs to skip")))
.setDescription("The amount of songs to skip")
)
)
.addSubcommand(subcommand =>
subcommand
.setName("queue")
.setDescription("Show the queue"))
.setDescription("Show the queue")
)
.addSubcommand(subcommand =>
subcommand
.setName("nowplaying")
.setDescription("Show the currently playing song"))
.setDescription("Show the currently playing song")
)
.addSubcommand(subcommand =>
subcommand
.setName("pause")
.setDescription("Pause the music"))
.setDescription("Pause the music")
)
.addSubcommand(subcommand =>
subcommand
.setName("unpause")
.setDescription("Unpause the music"))
.setDescription("Unpause the music")
)
.addSubcommand(subcommand =>
subcommand
.setName("leave")
.setDescription("Leave the voice channel"))
.setDescription("Leave the voice channel")
)
.setDMPermission(false)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
@@ -114,4 +125,4 @@ export default {
return
}
}
} as ICommand
} as ICommand

View File

@@ -22,4 +22,4 @@ export default async function leave(interaction: ChatInputCommandInteraction) {
color: embedColor
}]
})
}
}

View File

@@ -56,4 +56,4 @@ export default async function nowplaying(interaction: ChatInputCommandInteractio
}
}]
})
}
}

View File

@@ -35,4 +35,4 @@ export default async function pause(interaction: ChatInputCommandInteraction) {
color: embedColor
}]
})
}
}

View File

@@ -23,7 +23,7 @@ export default async function play(interaction: ChatInputCommandInteraction) {
const { track } = await player.play(channel, query, {
requestedBy: interaction.user,
nodeOptions: {
volume: 25,
volume: 25
}
})
@@ -40,4 +40,4 @@ export default async function play(interaction: ChatInputCommandInteraction) {
}
}]
})
}
}

View File

@@ -36,4 +36,4 @@ export default async function queue(interaction: ChatInputCommandInteraction) {
}
}]
})
}
}

View File

@@ -41,4 +41,4 @@ export default async function skip(interaction: ChatInputCommandInteraction) {
color: embedColor
}]
})
}
}

View File

@@ -35,4 +35,4 @@ export default async function pause(interaction: ChatInputCommandInteraction) {
color: embedColor
}]
})
}
}

View File

@@ -26,4 +26,4 @@ export default async function volume(interaction: ChatInputCommandInteraction) {
color: embedColor
}]
})
}
}

View File

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

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder, User } from "discord.js"
import { embedColor } from "config/options.js"
import { SlashCommandBuilder, User } from "discord.js"
import { ICommand } from "interfaces"
import env from "utils/Env.js"

View File

@@ -1,10 +1,10 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { embedColor, devMessage } from "config/options.js"
import waitinglist from "schemas/waitinglistTag.js"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel.js"
import { devMessage, embedColor } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { ICommand } from "interfaces"
import waitinglist from "schemas/waitinglistTag.js"
import { removeIndents } from "utils/functions/funcs.js"
import logToChannel from "utils/functions/logtochannel.js"
export default {
name: "remove",

View File

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

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
import { embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChannelType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { ICommand } from "interfaces"
export default {

View File

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

View File

@@ -1,11 +1,11 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor } from "config/options.js"
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import help from "./staff/help.js"
import beast from "./staff/beast.js"
import updateAll from "./staff/updateall.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"
export default {
name: "staff",

View File

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

View File

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

View File

@@ -1,5 +1,5 @@
import { devMessage, embedColor } from "config/options.js"
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
import { embedColor, devMessage } from "config/options.js"
import env from "utils/Env.js"
export default async function prune(interaction: ChatInputCommandInteraction): Promise<void> {
@@ -89,7 +89,7 @@ export default async function prune(interaction: ChatInputCommandInteraction): P
embeds: [{
description: "Cancelled",
color: embedColor
}],
}]
}).then(() => {
collector.stop()
})
@@ -104,13 +104,13 @@ export default async function prune(interaction: ChatInputCommandInteraction): P
}
await m.edit({
components: [],
components: []
})
await i.editReply({
embeds: [{
description: "Pruned all the members",
color: embedColor
}],
}]
}).then(() => {
collector.stop()
})

View File

@@ -1,10 +1,10 @@
import { embedColor, hypixelGuildID } from "config/options.js"
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import verify from "schemas/verifyTag.js"
import { IGuildData } from "interfaces"
import verify from "schemas/verifyTag.js"
import env from "utils/Env.js"
import { getGuild } from "utils/Hypixel.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getGuild } from "utils/Hypixel.js"
export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
@@ -22,12 +22,13 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
}
const guildMembers = await interaction.guild!.members.fetch().then(
members => members.map(member => {
return {
id: member.id,
member: member
}
})
members =>
members.map(member => {
return {
id: member.id,
member: member
}
})
)
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData

View File

@@ -1,11 +1,11 @@
import verify from "schemas/verifyTag.js"
import { embedColor, hypixelGuildID } from "config/options.js"
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import { IGuildData } from "interfaces"
import verify from "schemas/verifyTag.js"
import env from "utils/Env.js"
import color from "utils/functions/colors.js"
import roleManage from "utils/functions/rolesmanage.js"
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import env from "utils/Env.js"
import { getGuild, getIGN } from "utils/Hypixel.js"
import { IGuildData } from "interfaces"
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
@@ -23,12 +23,13 @@ export default async function updateAll(interaction: ChatInputCommandInteraction
}
const guildMembers = await interaction.guild!.members.fetch().then(
members => members.map(member => {
return {
id: member.id,
member: member
}
})
members =>
members.map(member => {
return {
id: member.id,
member: member
}
})
)
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData

View File

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

View File

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

View File

@@ -1,11 +1,11 @@
import { GuildMember, SlashCommandBuilder } from "discord.js"
import { getGuild, getIGN, getHeadURL } from "utils/Hypixel.js"
import verify from "schemas/verifyTag.js"
import { embedColor, hypixelGuildID, devMessage } from "config/options.js"
import roleManage from "utils/functions/rolesmanage.js"
import { ICommand } from "interfaces"
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { waitingListRole } from "config/roles.js"
import { GuildMember, SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import verify from "schemas/verifyTag.js"
import { removeIndents } from "utils/functions/funcs.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
export default {
name: "update",

View File

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

View File

@@ -1,11 +1,11 @@
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
import { GuildMember, SlashCommandBuilder } from "discord.js"
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
import { embedColor, hypixelGuildID, devMessage } from "config/options.js"
import roleManage from "utils/functions/rolesmanage.js"
import { ICommand } from "interfaces"
import verify from "schemas/verifyTag.js"
import { IPlayerData } from "interfaces"
import { IGuildData } from "interfaces"
import verify from "schemas/verifyTag.js"
import roleManage from "utils/functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
export default {
name: "verify",

View File

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

View File

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