Merge branch 'dev' into 'main'
Moved to esm See merge request illegitimate/illegitimate-bot!266
This commit is contained in:
2
.swcrc
2
.swcrc
@@ -22,7 +22,7 @@
|
||||
}
|
||||
},
|
||||
"module": {
|
||||
"type": "commonjs",
|
||||
"type": "es6",
|
||||
"strict": true,
|
||||
"strictMode": true,
|
||||
"noInterop": false,
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"type": "module",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitlab.com/illegitimate/illegitimate-bot"
|
||||
@@ -30,8 +31,8 @@
|
||||
"@discord-player/extractor": "^4.5.1",
|
||||
"@evan/opus": "^1.0.3",
|
||||
"anilist": "^0.12.4",
|
||||
"axios": "^1.7.4",
|
||||
"chalk": "^4.1.2",
|
||||
"axios": "^1.7.5",
|
||||
"chalk": "^5.3.0",
|
||||
"cron": "^3.1.7",
|
||||
"discord-player": "^6.7.1",
|
||||
"discord.js": "^14.15.3",
|
||||
@@ -51,7 +52,7 @@
|
||||
"@swc/cli": "^0.4.0",
|
||||
"@swc/core": "^1.7.14",
|
||||
"@types/ms": "^0.7.34",
|
||||
"@types/node": "^22.4.1",
|
||||
"@types/node": "^22.5.0",
|
||||
"@types/pg": "^8",
|
||||
"@typescript-eslint/eslint-plugin": "^8.2.0",
|
||||
"@typescript-eslint/parser": "^8.2.0",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits, userMention } from "discord.js"
|
||||
import { IContextMenu } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "congratsmessage",
|
||||
description: "Congratulate a user.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits } from "discord.js"
|
||||
import { IContextMenu } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "resetnick",
|
||||
description: "Reset your nickname.",
|
||||
dev: false,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||
import { embedColor, devMessage, hypixelGuildID } from "config/options"
|
||||
import { embedColor, devMessage, hypixelGuildID } from "config/options.js"
|
||||
import { IContextMenu } from "interfaces"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import { waitingListRole } from "config/roles"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "Update User",
|
||||
description: "Updates a user's roles",
|
||||
dev: false,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { QueryType, useMainPlayer } from "discord-player"
|
||||
import { IAutocomplete } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "music",
|
||||
description: "Music",
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IAutocomplete } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "unban",
|
||||
description: "Unban a user from the server",
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import guildapp from "schemas/guildAppTag"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import guildapp from "schemas/guildAppTag.js"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.js"
|
||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "checkstats",
|
||||
description: "Check your stats.",
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { ActionRowBuilder, ButtonStyle, ButtonBuilder, TextChannel } from "discord.js"
|
||||
import { embedColor, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options"
|
||||
import color from "utils/functions/colors"
|
||||
import guildapp from "schemas/guildAppTag"
|
||||
import waitingList from "schemas/waitinglistTag"
|
||||
import { waitingListRole } from "config/roles"
|
||||
import { embedColor, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options.js"
|
||||
import color from "utils/functions/colors.js"
|
||||
import guildapp from "schemas/guildAppTag.js"
|
||||
import waitingList from "schemas/waitinglistTag.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { IButton } from "interfaces"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
import { getGuild, getIGN } from "utils/Hypixel.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "guildapplicationaccept",
|
||||
description: "Accept a guild application.",
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "guildapplicationdeny",
|
||||
description: "Deny a guild application.",
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { ButtonBuilder, ButtonStyle, ActionRowBuilder, GuildMember, TextChannel } from "discord.js"
|
||||
import { embedColor, applicationsChannel } from "config/options"
|
||||
import { largeM, smallM, ignM } from "config/limitmessages"
|
||||
import questions from "config/questions"
|
||||
import { guildRole } from "config/roles"
|
||||
import guildapp from "schemas/guildAppTag"
|
||||
import { embedColor, applicationsChannel } from "config/options.js"
|
||||
import { largeM, smallM, ignM } from "config/limitmessages.js"
|
||||
import { guild as guildQuestions } from "config/questions.js"
|
||||
import { guildRole } from "config/roles.js"
|
||||
import guildapp from "schemas/guildAppTag.js"
|
||||
import { IButton } from "interfaces"
|
||||
import applicationQuestions from "utils/functions/applicationquestions"
|
||||
import applicationQuestions from "utils/functions/applicationquestions.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "guildapply",
|
||||
description: "Guild application button.",
|
||||
|
||||
@@ -16,7 +16,6 @@ export = {
|
||||
const user = interaction.member as GuildMember
|
||||
const guild = interaction.guild!
|
||||
const userRoles = user.roles.cache.map(role => role.id)
|
||||
const guildQuestions = questions.guild
|
||||
|
||||
function qu(n: number): string {
|
||||
return guildQuestions[n - 1].q
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { ButtonBuilder, ActionRowBuilder, ButtonStyle, GuildMember, TextChannel } from "discord.js"
|
||||
import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "config/roles"
|
||||
import { ignM, smallM, largeM } from "config/limitmessages"
|
||||
import { inactivity } from "config/questions"
|
||||
import { embedColor, inactivityLogChannel } from "config/options"
|
||||
import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "config/roles.js"
|
||||
import { ignM, smallM, largeM } from "config/limitmessages.js"
|
||||
import { inactivity } from "config/questions.js"
|
||||
import { embedColor, inactivityLogChannel } from "config/options.js"
|
||||
import { IButton } from "interfaces"
|
||||
import applicationQuestions from "utils/functions/applicationquestions"
|
||||
import applicationQuestions from "utils/functions/applicationquestions.js"
|
||||
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "guildinactivitylog",
|
||||
description: "Configure the bot.",
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "inactiveapplicationaccept",
|
||||
description: "Accept an inactivity application.",
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "inactiveapplicationdeny",
|
||||
description: "Denies an inactivity application.",
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import staffapp from "schemas/staffAppTag"
|
||||
import { embedColor } from "config/options.js"
|
||||
import staffapp from "schemas/staffAppTag.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "staffapplicationaccept",
|
||||
description: "Accept a staff application.",
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "staffapplicationdeny",
|
||||
description: "Deny a guild application.",
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { ButtonBuilder, ButtonStyle, ActionRowBuilder, GuildMember, TextChannel } from "discord.js"
|
||||
import { embedColor, staffApplicationsChannel } from "config/options"
|
||||
import { largeM, ignM } from "config/limitmessages"
|
||||
import questions from "config/questions"
|
||||
import { guildRole, guildStaff } from "config/roles"
|
||||
import staffapp from "schemas/staffAppTag"
|
||||
import settings from "schemas/settingsTag"
|
||||
import { embedColor, staffApplicationsChannel } from "config/options.js"
|
||||
import { largeM, ignM } from "config/limitmessages.js"
|
||||
import { staff as staffQuestions } from "config/questions.js"
|
||||
import { guildRole, guildStaff } from "config/roles.js"
|
||||
import staffapp from "schemas/staffAppTag.js"
|
||||
import settings from "schemas/settingsTag.js"
|
||||
import { IButton } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
import applicationQuestions from "utils/functions/applicationquestions"
|
||||
import env from "utils/Env.js"
|
||||
import applicationQuestions from "utils/functions/applicationquestions.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "staffapply",
|
||||
description: "Apply for the staff team.",
|
||||
|
||||
@@ -19,7 +19,6 @@ export = {
|
||||
const userRoles = user.roles.cache
|
||||
const setting = await settings.findOne({ where: { name: "staffAppStatus" } })
|
||||
const status = setting?.value || "0"
|
||||
const staffQuestions = questions.staff
|
||||
|
||||
function sq(n: number): string {
|
||||
return staffQuestions[n - 1].q
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "verify",
|
||||
description: "Configure the bot.",
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import waitinglist from "schemas/waitinglistTag"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
import { hypixelGuildID } from "config/options"
|
||||
import waitinglist from "schemas/waitinglistTag.js"
|
||||
import { getGuild, getIGN } from "utils/Hypixel.js"
|
||||
import { hypixelGuildID } from "config/options.js"
|
||||
import { IButton } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "waitinglistupdate",
|
||||
description: "Update the waiting list.",
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import guildapp from "schemas/guildAppTag"
|
||||
import { embedColor } from "config/options.js"
|
||||
import guildapp from "schemas/guildAppTag.js"
|
||||
import { IModal } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "denyreasonbox",
|
||||
description: "Deny reason box.",
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import staffapp from "schemas/staffAppTag"
|
||||
import { embedColor } from "config/options.js"
|
||||
import staffapp from "schemas/staffAppTag.js"
|
||||
import { IModal } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "staffdenyreasonbox",
|
||||
description: "Deny reason box.",
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||
import verify from "schemas/verifyTag"
|
||||
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options.js"
|
||||
import verify from "schemas/verifyTag.js"
|
||||
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles.js"
|
||||
import { IModal } from "interfaces"
|
||||
import { GuildMember } from "discord.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "verifybox",
|
||||
description: "Verify box.",
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
const limitMessages = {
|
||||
largeM: "(256 characters max)",
|
||||
smallM: "(128 characters max)",
|
||||
ignM: "(16 characters max)"
|
||||
}
|
||||
export = limitMessages
|
||||
const largeM = "(256 characters max)"
|
||||
const smallM = "(128 characters max)"
|
||||
const ignM = "(16 characters max)"
|
||||
|
||||
export { largeM, smallM, ignM }
|
||||
@@ -1,20 +1,37 @@
|
||||
const options = {
|
||||
embedColor: 0xeeaadb,
|
||||
guildid: "481741000365178881",
|
||||
devMessage: "Developed by taken.lua",
|
||||
applicationsChannel: "776705352456470550",
|
||||
staffApplicationsChannel: "1039258641393520700",
|
||||
inactivityLogChannel: "829742524796239882",
|
||||
staffOtherChannel: "1082036748558803104",
|
||||
hypixelGuildID: "5a353a170cf2e529044f2935",
|
||||
onlineLogChannel: "1101144489306886226",
|
||||
botLogChannel: "1174403585149243472",
|
||||
guildLogChannel: "1183733282534326322",
|
||||
errorLogChannel: "1192476369850994788",
|
||||
moderationLogChannel: "1193329771795447818",
|
||||
devLogChannel: "1193688673632391280",
|
||||
waitingListChannel: "1145773618291298384",
|
||||
waitingListMessage: "1146027645415473193",
|
||||
instructionsgif: "https://cdn.discordapp.com/attachments/838716950723952640/1188211176300089384/4DMu513uNxbM.gif?ex=6599b2e4&is=65873de4&hm=e727c7a39aacbc47d6a5453f4b5f792a45679983c30d662cd258a311381b6df0&"
|
||||
const embedColor = 0xeeaadb
|
||||
const guildid = "481741000365178881"
|
||||
const devMessage = "Developed by taken.lua"
|
||||
const applicationsChannel = "776705352456470550"
|
||||
const staffApplicationsChannel = "1039258641393520700"
|
||||
const inactivityLogChannel = "829742524796239882"
|
||||
const staffOtherChannel = "1082036748558803104"
|
||||
const hypixelGuildID = "5a353a170cf2e529044f2935"
|
||||
const onlineLogChannel = "1101144489306886226"
|
||||
const botLogChannel = "1174403585149243472"
|
||||
const guildLogChannel = "1183733282534326322"
|
||||
const errorLogChannel = "1192476369850994788"
|
||||
const moderationLogChannel = "1193329771795447818"
|
||||
const devLogChannel = "1193688673632391280"
|
||||
const waitingListChannel = "1145773618291298384"
|
||||
const waitingListMessage = "1146027645415473193"
|
||||
const instructionsgif = "https =//cdn.discordapp.com/attachments/838716950723952640/1188211176300089384/4DMu513uNxbM.gif?ex=6599b2e4&is=65873de4&hm=e727c7a39aacbc47d6a5453f4b5f792a45679983c30d662cd258a311381b6df0&"
|
||||
|
||||
export {
|
||||
embedColor,
|
||||
guildid,
|
||||
devMessage,
|
||||
applicationsChannel,
|
||||
staffApplicationsChannel,
|
||||
inactivityLogChannel,
|
||||
staffOtherChannel,
|
||||
hypixelGuildID,
|
||||
onlineLogChannel,
|
||||
botLogChannel,
|
||||
guildLogChannel,
|
||||
errorLogChannel,
|
||||
moderationLogChannel,
|
||||
devLogChannel,
|
||||
waitingListChannel,
|
||||
waitingListMessage,
|
||||
instructionsgif
|
||||
}
|
||||
export = options
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
const question = {
|
||||
guild: [
|
||||
const guild = [
|
||||
{
|
||||
q: "What is your IGN?",
|
||||
r: "What is your IGN?"
|
||||
@@ -32,8 +31,8 @@ const question = {
|
||||
q: "What is your time zone? (Example: GMT+1)",
|
||||
r: "What is your time zone?"
|
||||
}
|
||||
],
|
||||
staff: [
|
||||
]
|
||||
const staff = [
|
||||
{
|
||||
q: "What is your IGN?",
|
||||
r: "What is your IGN?"
|
||||
@@ -58,8 +57,8 @@ const question = {
|
||||
q: "Why should we choose you as a Guild Moderator? (Tell us what would you do for the guild, how are you gonna help us grow the community, how many hours per day are you willing to spend doing the stuff as moderator for the guild etc..",
|
||||
r: "Why should we choose you as a Guild Moderator?"
|
||||
}
|
||||
],
|
||||
inactivity: [
|
||||
]
|
||||
const inactivity = [
|
||||
{
|
||||
q: "What is your IGN?",
|
||||
r: "What is your IGN?"
|
||||
@@ -73,5 +72,5 @@ const question = {
|
||||
r: "Reason of the absence?"
|
||||
}
|
||||
]
|
||||
}
|
||||
export = question
|
||||
|
||||
export { guild, staff, inactivity }
|
||||
@@ -1,15 +1,27 @@
|
||||
const reqs = {
|
||||
bwstars: 200,
|
||||
bwfkdr: 4,
|
||||
bwwins: 1500,
|
||||
swstars: 15,
|
||||
swkdr: 1,
|
||||
duelswins: 6000,
|
||||
duelswlr: 3,
|
||||
beastbwstars: 500,
|
||||
beastbwfkdr: 7,
|
||||
beastswstars: 20,
|
||||
beastswkdr: 2.5,
|
||||
beastduelswins: 12000
|
||||
const bwstars = 200
|
||||
const bwfkdr = 4
|
||||
const bwwins = 1500
|
||||
const swstars = 15
|
||||
const swkdr = 1
|
||||
const duelswins = 6000
|
||||
const duelswlr = 3
|
||||
const beastbwstars = 500
|
||||
const beastbwfkdr = 7
|
||||
const beastswstars = 20
|
||||
const beastswkdr = 2.5
|
||||
const beastduelswins = 12000
|
||||
|
||||
export {
|
||||
bwstars,
|
||||
bwfkdr,
|
||||
bwwins,
|
||||
swstars,
|
||||
swkdr,
|
||||
duelswins,
|
||||
duelswlr,
|
||||
beastbwstars,
|
||||
beastbwfkdr,
|
||||
beastswstars,
|
||||
beastswkdr,
|
||||
beastduelswins
|
||||
}
|
||||
export = reqs
|
||||
|
||||
@@ -1,18 +1,33 @@
|
||||
const roles = {
|
||||
gm: "815893218246787080",
|
||||
manager: "815880752683679824",
|
||||
moderator: "815880910019887134",
|
||||
elite: "1137654165884129310",
|
||||
beast: "815880942345519104",
|
||||
member: "815880984301404190",
|
||||
guildStaff: "1175860041652379718",
|
||||
guildRole: "1043224015722000514",
|
||||
waitingListRole: "1092543315053908120",
|
||||
defaultMember: "722386801930797056",
|
||||
admin: "528549814846095360",
|
||||
helper: "592371991294771226",
|
||||
muted: "594355088932339732",
|
||||
countingBanned: "1192183486128341072",
|
||||
verifyTick: "1201624332674273290"
|
||||
const gm = "815893218246787080"
|
||||
const manager = "815880752683679824"
|
||||
const moderator = "815880910019887134"
|
||||
const elite = "1137654165884129310"
|
||||
const beast = "815880942345519104"
|
||||
const member = "815880984301404190"
|
||||
const guildStaff = "1175860041652379718"
|
||||
const guildRole = "1043224015722000514"
|
||||
const waitingListRole = "1092543315053908120"
|
||||
const defaultMember = "722386801930797056"
|
||||
const admin = "528549814846095360"
|
||||
const helper = "592371991294771226"
|
||||
const muted = "594355088932339732"
|
||||
const countingBanned = "1192183486128341072"
|
||||
const verifyTick = "1201624332674273290"
|
||||
|
||||
export {
|
||||
gm,
|
||||
manager,
|
||||
moderator,
|
||||
elite,
|
||||
beast,
|
||||
member,
|
||||
guildStaff,
|
||||
guildRole,
|
||||
waitingListRole,
|
||||
defaultMember,
|
||||
admin,
|
||||
helper,
|
||||
muted,
|
||||
countingBanned,
|
||||
verifyTick
|
||||
}
|
||||
export = roles
|
||||
|
||||
@@ -12,4 +12,4 @@ const statuses = [
|
||||
{ name: "urCryhard steal finals again", type: ActivityType.Watching },
|
||||
{ name: "with Perlcence the AI", type: ActivityType.Playing },
|
||||
]
|
||||
export = statuses
|
||||
export default statuses
|
||||
@@ -1,8 +1,8 @@
|
||||
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
|
||||
import color from "utils/functions/colors"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options.js"
|
||||
import color from "utils/functions/colors.js"
|
||||
import { getGuild, getIGN } from "utils/Hypixel.js"
|
||||
import { ICron, IGuildData } from "interfaces"
|
||||
import { client } from "utils/Illegitimate"
|
||||
import { client } from "utils/Illegitimate.js"
|
||||
import { TextChannel } from "discord.js"
|
||||
|
||||
async function guildWeekly() {
|
||||
@@ -86,7 +86,7 @@ async function guildWeekly() {
|
||||
})
|
||||
}
|
||||
|
||||
export = {
|
||||
export default {
|
||||
time: {
|
||||
seconds: 0,
|
||||
minutes: 0,
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { GuildMember, userMention } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { IEvent } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "logNewJoins",
|
||||
description: "Logs new joins",
|
||||
event: "guildMemberAdd",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
||||
import color from "utils/functions/colors"
|
||||
import color from "utils/functions/colors.js"
|
||||
import { IEvent } from "interfaces"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "logBtnsCmds",
|
||||
description: "Logs all button and command interactions",
|
||||
event: "interactionCreate",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Message } from "discord.js"
|
||||
import { IEvent } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
import env from "utils/Env.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "eval",
|
||||
description: "Evaluate a JavaScript expression",
|
||||
event: "messageCreate",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { IEvent } from "interfaces"
|
||||
import { Message } from "discord.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "ur mom",
|
||||
description: "ur moms someone",
|
||||
event: "messageCreate",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { IEvent } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import color from "utils/functions/colors"
|
||||
import { ExtendedClient as Client } from "utils/Client.js"
|
||||
import color from "utils/functions/colors.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "conolelog",
|
||||
description: "console log",
|
||||
event: "ready",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { IEvent } from "interfaces"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "sendonlinemessage",
|
||||
description: "send an online message",
|
||||
event: "ready",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { guildid } from "config/options"
|
||||
import statuses from "config/statuses"
|
||||
import { guildid } from "config/options.js"
|
||||
import statuses from "config/statuses.js"
|
||||
import { Guild } from "discord.js"
|
||||
import { IEvent } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import { ExtendedClient as Client } from "utils/Client.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "status",
|
||||
description: "Sets the status of the bot",
|
||||
event: "ready",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { userMention, channelMention, VoiceState } from "discord.js"
|
||||
import { embedColor } from "config/options"
|
||||
import { embedColor } from "config/options.js"
|
||||
import { IEvent } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
|
||||
export = {
|
||||
export default {
|
||||
name: "vcJoinLeave",
|
||||
description: "Logs when a user joins or leaves a voice channel.",
|
||||
event: "voiceStateUpdate",
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { Illegitimate } from "utils/Illegitimate"
|
||||
import { Illegitimate } from "utils/Illegitimate.js"
|
||||
|
||||
new Illegitimate().start()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { AutocompleteInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
import { ExtendedClient } from "utils/Client.js"
|
||||
|
||||
export default interface IAutocomplete {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ButtonInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
import { ExtendedClient } from "utils/Client.js"
|
||||
|
||||
export default interface IButton {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import { ExtendedClient as Client } from "utils/Client.js"
|
||||
|
||||
export default interface ICommand {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ContextMenuCommandInteraction, ContextMenuCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
import { ExtendedClient } from "utils/Client.js"
|
||||
|
||||
export default interface IContextMenu {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ModalSubmitInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
import { ExtendedClient } from "utils/Client.js"
|
||||
|
||||
export default interface IModal {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
import { sequelize } from "utils/Illegitimate.js"
|
||||
|
||||
interface GuildApp extends Model<InferAttributes<GuildApp>, InferCreationAttributes<GuildApp>> {
|
||||
userID: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
import { sequelize } from "utils/Illegitimate.js"
|
||||
|
||||
interface Settings extends Model<InferAttributes<Settings>, InferCreationAttributes<Settings>> {
|
||||
name: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
import { sequelize } from "utils/Illegitimate.js"
|
||||
|
||||
interface StaffApp extends Model<InferAttributes<StaffApp>, InferCreationAttributes<StaffApp>> {
|
||||
userID: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
import { sequelize } from "utils/Illegitimate.js"
|
||||
|
||||
interface Verify extends Model<InferAttributes<Verify>, InferCreationAttributes<Verify>> {
|
||||
userID: string
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
import { sequelize } from "utils/Illegitimate.js"
|
||||
|
||||
interface WaitingList extends Model<InferAttributes<WaitingList>, InferCreationAttributes<WaitingList>> {
|
||||
userID: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { ExtendedClient } from "utils/Client"
|
||||
import { ExtendedClient } from "utils/Client.js"
|
||||
import TZs from "./TimeZones"
|
||||
|
||||
export type TimeZones = typeof TZs[number]
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import fs from "fs"
|
||||
import { ExtendedClient } from "./Client"
|
||||
import env from "./Env"
|
||||
import { ExtendedClient } from "./Client.js"
|
||||
import env from "./Env.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js"
|
||||
import color from "./functions/colors"
|
||||
import color from "./functions/colors.js"
|
||||
type FileType = "js" | "ts"
|
||||
|
||||
export default async function autoDeployCommands(fileType: FileType, client: ExtendedClient) {
|
||||
@@ -20,7 +20,9 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
|
||||
}
|
||||
|
||||
for (const file of commandFiles) {
|
||||
const command: ICommand = require(`../commands/${file}`)
|
||||
// const command: ICommand = require(`../commands/${file}`)
|
||||
const { default: commandImport } = await import(`../commands/${file}`)
|
||||
const command: ICommand = commandImport
|
||||
if (command.dev) {
|
||||
commands.push(command.data.toJSON())
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user