@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "config/options"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { anilist } from "anilist"
|
||||
import { capitalizeFirstLetter, removeIndents } from "utils/functions/funcs"
|
||||
import { capitalizeFirstLetter, removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "anime",
|
||||
description: "Anime subcommands",
|
||||
public: true,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js"
|
||||
import { admin, helper } from "config/roles"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { admin, helper } from "config/roles.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "ban",
|
||||
description: "Ban a user",
|
||||
dev: false,
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import os from "os"
|
||||
import prettyMs from "pretty-ms"
|
||||
import { execSync } from "child_process"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
import { createRequire } from "node:module"
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const { dependencies, devDependencies } = require("../../package.json")
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "botinfo",
|
||||
description: "Get information about the bot",
|
||||
dev: false,
|
||||
@@ -18,7 +22,6 @@ export = {
|
||||
.setDMPermission(false),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
const { default: prettyMs } = await import("pretty-ms")
|
||||
const castedDeps = dependencies as { [key: string]: string }
|
||||
const castedDevDeps = devDependencies as { [key: string]: string }
|
||||
let osInfo: string
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
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"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "check",
|
||||
description: "Check a player's stats.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, TextChannel, channelMention, userMention } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "clear",
|
||||
description: "Clears messages",
|
||||
dev: false,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import settings from "schemas/settingsTag"
|
||||
import settings from "schemas/settingsTag.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "config",
|
||||
description: "Configure the bot",
|
||||
dev: false,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import ban from "./counting/ban"
|
||||
import unban from "./counting/unban"
|
||||
import ban from "./counting/ban.js"
|
||||
import unban from "./counting/unban.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "counting",
|
||||
description: "counting subcommands",
|
||||
dev: false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
|
||||
import { countingBanned } from "config/roles"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { countingBanned } from "config/roles.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
|
||||
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
|
||||
import { countingBanned } from "config/roles"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { countingBanned } from "config/roles.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
|
||||
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { devMessage, embedColor } from "config/options"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { getHeadURL, getIGN, getUUID } from "utils/Hypixel"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { getHeadURL, getIGN, getUUID } from "utils/Hypixel.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "find",
|
||||
description: "Find a person by the ign",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { getIGN } from "utils/Hypixel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { getIGN } from "utils/Hypixel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "forceunverify",
|
||||
description: "Force unverify a user",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||
import { hypixelGuildID, embedColor, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
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"
|
||||
import { waitingListRole } from "config/roles"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "forceupdate",
|
||||
description: "Force update the user",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, GuildMember, userMention } from "discord.js"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
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 { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "forceverify",
|
||||
description: "Force verify a user.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import guildMember from "./guild/member"
|
||||
import guildInfo from "./guild/info"
|
||||
import guildTop from "./guild/top"
|
||||
import guildMember from "./guild/member.js"
|
||||
import guildInfo from "./guild/info.js"
|
||||
import guildTop from "./guild/top.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "guild",
|
||||
description: "Subcommands for guilds",
|
||||
dev: false,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import { redis } from "utils/Illegitimate"
|
||||
import { redis } from "utils/Illegitimate.js"
|
||||
|
||||
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "help",
|
||||
description: "Help command",
|
||||
dev: false,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { embedColor, devMessage, instructionsgif } from "config/options"
|
||||
import { embedColor, devMessage, instructionsgif } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "instructions",
|
||||
description: "Instructions for verification",
|
||||
dev: false,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { admin, helper } from "config/roles"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { admin, helper } from "config/roles.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "kick",
|
||||
description: "Kick a member from the server.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import play from "./music/play"
|
||||
import leave from "./music/leave"
|
||||
import queue from "./music/queue"
|
||||
import volume from "./music/volume"
|
||||
import skip from "./music/skip"
|
||||
import nowplaying from "./music/nowplaying"
|
||||
import pause from "./music/pause"
|
||||
import unpause from "./music/unpause"
|
||||
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 unpause from "./music/unpause.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "music",
|
||||
description: "Subcommands for music commands",
|
||||
dev: true,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export default async function nowplaying(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "ping",
|
||||
description: "Get the bot's ping.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SlashCommandBuilder, User } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
import env from "utils/Env.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "pp",
|
||||
description: "Shows pp size",
|
||||
public: true,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import waitinglist from "schemas/waitinglistTag"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import waitinglist from "schemas/waitinglistTag.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { waitingListRole } from "config/roles"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "remove",
|
||||
description: "Remove a person on the waiting list.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "reqs",
|
||||
description: "Displays the requirements for the guild.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "send",
|
||||
description: "Send a message to a channel.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "setnick",
|
||||
description: "Set your nickname",
|
||||
dev: false,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "setup",
|
||||
description: "Used for setup of the bot.",
|
||||
dev: true,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel, channelMention, userMention } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "slowmode",
|
||||
description: "Set the slowmode of a channel.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import help from "./staff/help"
|
||||
import beast from "./staff/beast"
|
||||
import updateAll from "./staff/updateall"
|
||||
import prune from "./staff/prune"
|
||||
import removeGuildRoles from "./staff/removeguildroles"
|
||||
import help from "./staff/help.js"
|
||||
import beast from "./staff/beast.js"
|
||||
import updateAll from "./staff/updateall.js"
|
||||
import prune from "./staff/prune.js"
|
||||
import removeGuildRoles from "./staff/removeguildroles.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "staff",
|
||||
description: "Subcommands for staff",
|
||||
dev: false,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { bwwins, beastbwfkdr, beastbwstars, beastswkdr, beastswstars, beastduelswins, duelswlr } from "config/reqs"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
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 { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
export default async function beast(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
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> {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import env from "utils/Env"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import env from "utils/Env.js"
|
||||
|
||||
export default async function prune(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { embedColor, hypixelGuildID } from "config/options"
|
||||
import { embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import verify from "schemas/verifyTag"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
import { getGuild } from "utils/Hypixel"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import env from "utils/Env.js"
|
||||
import { getGuild } from "utils/Hypixel.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
|
||||
export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import verify from "schemas/verifyTag"
|
||||
import { embedColor, hypixelGuildID } from "config/options"
|
||||
import color from "utils/functions/colors"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { embedColor, hypixelGuildID } from "config/options.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"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
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> {
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import ms from "ms"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import prettyMs from "pretty-ms"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "timeout",
|
||||
description: "Times out a memeber",
|
||||
dev: false,
|
||||
@@ -42,7 +43,17 @@ export = {
|
||||
const reason = interaction.options.getString("reason") || "No reason provided"
|
||||
const mod = interaction.member! as GuildMember
|
||||
const time = ms(timeString)
|
||||
const { default: prettyMs } = await import("pretty-ms")
|
||||
|
||||
if (!time) {
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "There was an error parsing the time.",
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
const prettyTime = prettyMs(time, { verbose: true })
|
||||
|
||||
if (time > 2419140000) {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, User } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "unban",
|
||||
description: "Unban a user from the server",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||
import { getGuild, getIGN, getHeadURL } from "utils/Hypixel"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
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 { waitingListRole } from "config/roles"
|
||||
import { removeIndents } from "utils/functions/funcs"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { removeIndents } from "utils/functions/funcs.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "update",
|
||||
description: "Update your guild rank.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "uuid",
|
||||
description: "Get a player's UUID",
|
||||
dev: false,
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
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"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { IPlayerData } from "interfaces"
|
||||
import { IGuildData } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "verify",
|
||||
description: "Verify yourself as a member of the server.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "whoami",
|
||||
description: "Get your user info",
|
||||
public: true,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { ICommand } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "whois",
|
||||
description: "Get's the ign of a user.",
|
||||
dev: false,
|
||||
|
||||
Reference in New Issue
Block a user