Updated dir structure and paths
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
PermissionFlagsBits,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { ContextMenu } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "congratsmessage",
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
ApplicationCommandType,
|
||||
PermissionFlagsBits,
|
||||
} from "discord.js"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { ContextMenu } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "resetnick",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||
import { color, devMessage, hypixelGuildID } from "@config/options.json"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import verifySchema from "@schemas/verifySchema"
|
||||
import { getGuild, getHeadURL, getIGN } from "@utils/Hypixel"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import { color, devMessage, hypixelGuildID } from "config/options.json"
|
||||
import { ContextMenu } from "interfaces"
|
||||
import verifySchema from "schemas/verifySchema"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
|
||||
export = {
|
||||
name: "Update User",
|
||||
|
||||
@@ -4,10 +4,10 @@ import {
|
||||
userMention,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { admin, helper } from "@config/roles.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { admin, helper } from "config/roles.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "ban",
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
swkdr,
|
||||
duelswins,
|
||||
duelswlr,
|
||||
} from "@config/reqs.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
} from "config/reqs.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import {
|
||||
hypixelLevel,
|
||||
bedwarsLevel,
|
||||
@@ -17,8 +17,8 @@ import {
|
||||
getPlayer,
|
||||
getGuild,
|
||||
getHeadURL,
|
||||
} from "@utils/Hypixel"
|
||||
import { Command } from "@interfaces"
|
||||
} from "utils/Hypixel"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "check",
|
||||
|
||||
@@ -5,9 +5,9 @@ import {
|
||||
channelMention,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "clear",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import settings from "@schemas/settingsSchema"
|
||||
import { color } from "config/options.json"
|
||||
import settings from "schemas/settingsSchema"
|
||||
import mongoose from "mongoose"
|
||||
import { Command } from "@interfaces"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "config",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChannelType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import setup from "./counting/setup"
|
||||
import ban from "./counting/ban"
|
||||
import unban from "./counting/unban"
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
GuildMember,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { countingBanned } from "@config/roles.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { countingBanned } from "config/roles.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
|
||||
export default async function ban(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js"
|
||||
import settingsSchema from "@schemas/settingsSchema"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import settingsSchema from "schemas/settingsSchema"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import mongoose from "mongoose"
|
||||
|
||||
export default async function setup(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
|
||||
@@ -3,8 +3,8 @@ import {
|
||||
GuildMember,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { countingBanned } from "@config/roles.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { countingBanned } from "config/roles.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
|
||||
export default async function ban(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
PermissionFlagsBits,
|
||||
ChatInputCommandInteraction,
|
||||
} from "discord.js"
|
||||
import { Command } from "@interfaces"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
const command: Command = {
|
||||
name: "dev-info",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { Command } from "@interfaces"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "devel",
|
||||
|
||||
@@ -4,12 +4,12 @@ import {
|
||||
userMention,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { Command } from "@interfaces"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { getIGN } from "@utils/Hypixel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { Command } from "interfaces"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { getIGN } from "utils/Hypixel"
|
||||
|
||||
export = {
|
||||
name: "forceunverify",
|
||||
|
||||
@@ -4,11 +4,11 @@ import {
|
||||
userMention,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "@utils/Hypixel"
|
||||
import { hypixelGuildID, color, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { Command } from "@interfaces"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||
import { hypixelGuildID, color, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { Command } from "interfaces"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
|
||||
export = {
|
||||
name: "forceupdate",
|
||||
|
||||
@@ -4,13 +4,13 @@ import {
|
||||
GuildMember,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import mongoose from "mongoose"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "forceverify",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import guildMember from "./guild/member"
|
||||
import guildInfo from "./guild/info"
|
||||
import guildTop from "./guild/top"
|
||||
|
||||
@@ -4,10 +4,10 @@ import {
|
||||
getPlayer,
|
||||
getGuild,
|
||||
guildLevel,
|
||||
} from "@utils/Hypixel"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
} from "utils/Hypixel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { GuildData } from "@interfaces"
|
||||
import { GuildData } from "interfaces"
|
||||
|
||||
export default async function guildInfo(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
export default async function guildMember(
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { getUUID, getPlayer, getGuild, getIGN } from "@utils/Hypixel"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
||||
import { GuildData } from "@interfaces"
|
||||
import Illegitimate from "@utils/Illegitimate"
|
||||
import { GuildData } from "interfaces"
|
||||
import Illegitimate from "utils/Illegitimate"
|
||||
const redis = Illegitimate.redis
|
||||
|
||||
export default async function guildTop(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "help",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { color, devMessage, instructionsgif } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage, instructionsgif } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "instructions",
|
||||
|
||||
@@ -4,10 +4,10 @@ import {
|
||||
userMention,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { admin, helper } from "@config/roles.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { admin, helper } from "config/roles.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "kick",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "ping",
|
||||
|
||||
@@ -3,10 +3,10 @@ import {
|
||||
PermissionFlagsBits,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import waitinglistSchema from "@schemas/waitinglistSchema"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import waitinglistSchema from "schemas/waitinglistSchema"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "remove",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import {
|
||||
bwfkdr,
|
||||
bwstars,
|
||||
@@ -8,8 +8,8 @@ import {
|
||||
swkdr,
|
||||
duelswins,
|
||||
duelswlr,
|
||||
} from "@config/reqs.json"
|
||||
import { Command } from "@interfaces"
|
||||
} from "config/reqs.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "reqs",
|
||||
|
||||
@@ -4,8 +4,8 @@ import {
|
||||
ChannelType,
|
||||
TextChannel,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "send",
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
userMention,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "setnick",
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
ChannelType,
|
||||
TextChannel,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "setup",
|
||||
|
||||
@@ -6,9 +6,9 @@ import {
|
||||
channelMention,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "slowmode",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||
import snipeCacheSchema from "@schemas/snipeCacheSchema"
|
||||
import { Command } from "@interfaces"
|
||||
import { color } from "@config/options.json"
|
||||
import { SnipeCache } from "@utils/Types"
|
||||
import snipeCacheSchema from "schemas/snipeCacheSchema"
|
||||
import { Command } from "interfaces"
|
||||
import { color } from "config/options.json"
|
||||
import { SnipeCache } from "utils/Types"
|
||||
|
||||
export = {
|
||||
name: "snipe",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import help from "./staff/help"
|
||||
import beast from "./staff/beast"
|
||||
import updateDiscordRoles from "./staff/updatediscordroles"
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
beastswstars,
|
||||
beastduelswins,
|
||||
duelswlr,
|
||||
} from "@config/reqs.json"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
} from "config/reqs.json"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import {
|
||||
hypixelLevel,
|
||||
bedwarsLevel,
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
getPlayer,
|
||||
getGuild,
|
||||
getHeadURL,
|
||||
} from "@utils/Hypixel"
|
||||
} from "utils/Hypixel"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
|
||||
export default async function beast(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
|
||||
export default async function help(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { color, hypixelGuildID } from "@config/options.json"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { color, hypixelGuildID } from "config/options.json"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import env from "@utils/Env"
|
||||
import { getGuild } from "@utils/Hypixel"
|
||||
import { GuildData } from "@interfaces"
|
||||
import env from "utils/Env"
|
||||
import { getGuild } from "utils/Hypixel"
|
||||
import { GuildData } from "interfaces"
|
||||
|
||||
export default async function updateDiscordRoles(
|
||||
interaction: ChatInputCommandInteraction,
|
||||
|
||||
@@ -5,10 +5,10 @@ import {
|
||||
ChatInputCommandInteraction,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import ms from "ms"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
const command: Command = {
|
||||
name: "timeout",
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
userMention,
|
||||
User,
|
||||
} from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "unban",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||
import { getGuild, getIGN, getHeadURL } from "@utils/Hypixel"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import { Command } from "@interfaces"
|
||||
import { getGuild, getIGN, getHeadURL } from "utils/Hypixel"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { color, hypixelGuildID, devMessage } from "config/options.json"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "update",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "@utils/Hypixel"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "uuid",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "config/options.json"
|
||||
import mongoose from "mongoose"
|
||||
import roleManage from "@utils/functions/rolesmanage"
|
||||
import { Command } from "@interfaces"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { PlayerData } from "@interfaces"
|
||||
import { GuildData } from "@interfaces"
|
||||
import roleManage from "utils/functions/rolesmanage"
|
||||
import { Command } from "interfaces"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { PlayerData } from "interfaces"
|
||||
import { GuildData } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "verify",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { Command } from "@interfaces"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { getIGN, getHeadURL } from "@utils/Hypixel"
|
||||
import { Command } from "interfaces"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||
|
||||
export = {
|
||||
name: "whoami",
|
||||
|
||||
@@ -3,10 +3,10 @@ import {
|
||||
PermissionFlagsBits,
|
||||
userMention,
|
||||
} from "discord.js"
|
||||
import { getIGN, getHeadURL } from "@utils/Hypixel"
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { Command } from "@interfaces"
|
||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import { Command } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "whois",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Autocomplete } from "@interfaces"
|
||||
import { Autocomplete } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "unban",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { color, devMessage } from "@config/options.json"
|
||||
import guildapp from "@schemas/guildAppSchema"
|
||||
import { color, devMessage } from "config/options.json"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import {
|
||||
bwfkdr,
|
||||
bwstars,
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
swkdr,
|
||||
duelswins,
|
||||
duelswlr,
|
||||
} from "@config/reqs.json"
|
||||
} from "config/reqs.json"
|
||||
import {
|
||||
hypixelLevel,
|
||||
bedwarsLevel,
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
getPlayer,
|
||||
getGuild,
|
||||
getHeadURL,
|
||||
} from "@utils/Hypixel"
|
||||
import { Button } from "@interfaces"
|
||||
} from "utils/Hypixel"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "checkstats",
|
||||
|
||||
@@ -9,14 +9,14 @@ import {
|
||||
waitingListChannel,
|
||||
waitingListMessage,
|
||||
hypixelGuildID,
|
||||
} from "@config/options.json"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
} from "config/options.json"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import mongoose from "mongoose"
|
||||
import guildapp from "@schemas/guildAppSchema"
|
||||
import waitingList from "@schemas/waitinglistSchema"
|
||||
import { waitingListRole } from "@config/roles.json"
|
||||
import { Button } from "@interfaces"
|
||||
import { getGuild } from "@utils/Hypixel"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import waitingList from "schemas/waitinglistSchema"
|
||||
import { waitingListRole } from "config/roles.json"
|
||||
import { Button } from "interfaces"
|
||||
import { getGuild } from "utils/Hypixel"
|
||||
|
||||
export = {
|
||||
name: "guildapplicationaccept",
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
TextInputBuilder,
|
||||
TextInputStyle,
|
||||
} from "discord.js"
|
||||
import { Button } from "@interfaces"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "guildapplicationdeny",
|
||||
|
||||
@@ -6,15 +6,15 @@ import {
|
||||
GuildMember,
|
||||
TextChannel,
|
||||
} from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import { largeM, smallM, ignM } from "@config/limitmessages.json"
|
||||
import { applicationsChannel } from "@config/options.json"
|
||||
import questions from "@config/questions.json"
|
||||
import { guildRole } from "@config/roles.json"
|
||||
import { getUUID } from "@utils/Hypixel"
|
||||
import { color } from "config/options.json"
|
||||
import { largeM, smallM, ignM } from "config/limitmessages.json"
|
||||
import { applicationsChannel } from "config/options.json"
|
||||
import questions from "config/questions.json"
|
||||
import { guildRole } from "config/roles.json"
|
||||
import { getUUID } from "utils/Hypixel"
|
||||
import mongoose from "mongoose"
|
||||
import guildapp from "@schemas/guildAppSchema"
|
||||
import { Button } from "@interfaces"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "guildapply",
|
||||
|
||||
@@ -14,11 +14,11 @@ import {
|
||||
member,
|
||||
guildStaff,
|
||||
guildRole,
|
||||
} from "@config/roles.json"
|
||||
import { ignM, smallM, largeM } from "@config/limitmessages.json"
|
||||
import { inactivity } from "@config/questions.json"
|
||||
import { color, inactivityLogChannel } from "@config/options.json"
|
||||
import { Button } from "@interfaces"
|
||||
} from "config/roles.json"
|
||||
import { ignM, smallM, largeM } from "config/limitmessages.json"
|
||||
import { inactivity } from "config/questions.json"
|
||||
import { color, inactivityLogChannel } from "config/options.json"
|
||||
import { Button } from "interfaces"
|
||||
const guildRoles = [
|
||||
gm,
|
||||
manager,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button } from "@interfaces"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "inactiveapplicationaccept",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Button } from "@interfaces"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "inactiveapplicationdeny",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import staffapp from "@schemas/staffAppSchema"
|
||||
import { Button } from "@interfaces"
|
||||
import { color } from "config/options.json"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "staffapplicationaccept",
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
TextInputBuilder,
|
||||
TextInputStyle,
|
||||
} from "discord.js"
|
||||
import { Button } from "@interfaces"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "staffapplicationdeny",
|
||||
|
||||
@@ -6,16 +6,16 @@ import {
|
||||
GuildMember,
|
||||
TextChannel,
|
||||
} from "discord.js"
|
||||
import { color, staffApplicationsChannel } from "@config/options.json"
|
||||
import { largeM, ignM } from "@config/limitmessages.json"
|
||||
import questions from "@config/questions.json"
|
||||
import { guildRole, guildStaff } from "@config/roles.json"
|
||||
import { color, staffApplicationsChannel } from "config/options.json"
|
||||
import { largeM, ignM } from "config/limitmessages.json"
|
||||
import questions from "config/questions.json"
|
||||
import { guildRole, guildStaff } from "config/roles.json"
|
||||
import mongoose from "mongoose"
|
||||
import staffapp from "@schemas/staffAppSchema"
|
||||
import settings from "@schemas/settingsSchema"
|
||||
import { getUUID } from "@utils/Hypixel"
|
||||
import { Button } from "@interfaces"
|
||||
import env from "@utils/Env"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import settings from "schemas/settingsSchema"
|
||||
import { getUUID } from "utils/Hypixel"
|
||||
import { Button } from "interfaces"
|
||||
import env from "utils/Env"
|
||||
|
||||
export = {
|
||||
name: "staffapply",
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
TextInputBuilder,
|
||||
TextInputStyle,
|
||||
} from "discord.js"
|
||||
import { Button } from "@interfaces"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "verify",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import waitinglist from "@schemas/waitinglistSchema"
|
||||
import { getGuild } from "@utils/Hypixel"
|
||||
import { hypixelGuildID } from "@config/options.json"
|
||||
import { Button } from "@interfaces"
|
||||
import waitinglist from "schemas/waitinglistSchema"
|
||||
import { getGuild } from "utils/Hypixel"
|
||||
import { hypixelGuildID } from "config/options.json"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "waitinglistupdate",
|
||||
|
||||
@@ -6,9 +6,9 @@ import {
|
||||
Message,
|
||||
GuildMember,
|
||||
} from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import guildapp from "@schemas/guildAppSchema"
|
||||
import { Modal } from "@interfaces"
|
||||
import { color } from "config/options.json"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import { Modal } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "denyreasonbox",
|
||||
|
||||
@@ -4,9 +4,9 @@ import {
|
||||
ButtonBuilder,
|
||||
ButtonStyle,
|
||||
} from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import staffapp from "@schemas/staffAppSchema"
|
||||
import { Modal } from "@interfaces"
|
||||
import { color } from "config/options.json"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import { Modal } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "staffdenyreasonbox",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||
import verify from "@schemas/verifySchema"
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "config/options.json"
|
||||
import verify from "schemas/verifySchema"
|
||||
import mongoose from "mongoose"
|
||||
import {
|
||||
gm,
|
||||
@@ -12,8 +12,8 @@ import {
|
||||
guildRole,
|
||||
guildStaff,
|
||||
defaultMember,
|
||||
} from "@config/roles.json"
|
||||
import { Modal } from "@interfaces"
|
||||
} from "config/roles.json"
|
||||
import { Modal } from "interfaces"
|
||||
import { GuildMember } from "discord.js"
|
||||
|
||||
export = {
|
||||
|
||||
5
src/config/limitmessages.json
Normal file
5
src/config/limitmessages.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"largeM": "(256 characters max)",
|
||||
"smallM": "(128 characters max)",
|
||||
"ignM": "(16 characters max)"
|
||||
}
|
||||
19
src/config/options.json
Normal file
19
src/config/options.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"color": "#eeaadb",
|
||||
"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&"
|
||||
}
|
||||
76
src/config/questions.json
Normal file
76
src/config/questions.json
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"guild": [
|
||||
{
|
||||
"q": "What is your IGN?",
|
||||
"r": "What is your IGN?"
|
||||
},
|
||||
{
|
||||
"q": "What is your hypixel Network Level?",
|
||||
"r": "What is your hypixel Network Level?"
|
||||
},
|
||||
{
|
||||
"q": "What stats are you submitting? (ex. BW lv 135 or SW lv 12 etc..)? Please provide us your best stats of the gamemode you main the most.",
|
||||
"r": "What stats are you submitting?"
|
||||
},
|
||||
{
|
||||
"q": "Which talents make you a good member for Illegitimate? Tell us about your accomplishments, hobbies and ambitions both on Hypixel and in real life.",
|
||||
"r": "Which talents make you a good member for Illegitimate?"
|
||||
},
|
||||
{
|
||||
"q": "Will you be able to make from 100k to 150k gexp x week?",
|
||||
"r": "Will you be able to make from 100k to 150k gexp x week?"
|
||||
},
|
||||
{
|
||||
"q": "Tell us about: your age, what you expect to gain from Illegitimate, whether you play on other accounts; if you often will be inactive; your punishment history; etc… This section is all yours and we expect a longer answer.",
|
||||
"r": "Tell us about yourself."
|
||||
},
|
||||
{
|
||||
"q": "How did you find about us? (Yt, advertisement in lobbies, friend..)",
|
||||
"r": "How did you find about us?"
|
||||
},
|
||||
{
|
||||
"q": "What is your time zone? (Example: GMT+1)",
|
||||
"r": "What is your time zone?"
|
||||
}
|
||||
],
|
||||
"staff": [
|
||||
{
|
||||
"q": "What is your IGN?",
|
||||
"r": "What is your IGN?"
|
||||
},
|
||||
{
|
||||
"q": "How long have you been in the guild for?",
|
||||
"r": "How long have you been in the guild for?"
|
||||
},
|
||||
{
|
||||
"q": "Have you been guild muted for any reason? (This includes mutes for staff disrespect, arguing with guild members, toxicity...)",
|
||||
"r": "Have you been guild muted for any reason?"
|
||||
},
|
||||
{
|
||||
"q": "Are you an active guild member? (Keep in mind we will surely check your GEXP)",
|
||||
"r": "Are you an active guild member?"
|
||||
},
|
||||
{
|
||||
"q": "Do you have any experience as a staff member (guild moderator) at all?",
|
||||
"r": "Do you have any experience as a staff member (guild moderator) at all?"
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
{
|
||||
"q": "What is your IGN?",
|
||||
"r": "What is your IGN?"
|
||||
},
|
||||
{
|
||||
"q": "Duration of the absence?",
|
||||
"r": "Duration of the absence?"
|
||||
},
|
||||
{
|
||||
"q": "Reason of the absence?",
|
||||
"r": "Reason of the absence?"
|
||||
}
|
||||
]
|
||||
}
|
||||
14
src/config/reqs.json
Normal file
14
src/config/reqs.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"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
|
||||
}
|
||||
16
src/config/roles.json
Normal file
16
src/config/roles.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
10
src/config/statuses.json
Normal file
10
src/config/statuses.json
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{ "name": "over the Illegitimate Server", "type": 3 },
|
||||
{ "name": "jon and pit edate", "type": 3 },
|
||||
{ "name": "for Martina's return", "type": 3 },
|
||||
{ "name": "w vri's feelings", "type": 0 },
|
||||
{ "name": "urCryhard steal finals again", "type": 3 },
|
||||
{ "name": "with Perlcence the AI", "type": 0 },
|
||||
{ "name": "with ur mom in my bed", "type": 0 },
|
||||
{ "name": "with Jone the idiot", "type": 0 }
|
||||
]
|
||||
@@ -3,11 +3,11 @@ import {
|
||||
guildLogChannel,
|
||||
color,
|
||||
devMessage,
|
||||
} from "@config/options.json"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { getGuild, getIGN } from "@utils/Hypixel"
|
||||
import { Cron, GuildData } from "@interfaces"
|
||||
import Illegitimate from "@utils/Illegitimate"
|
||||
} from "config/options.json"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import { getGuild, getIGN } from "utils/Hypixel"
|
||||
import { Cron, GuildData } from "interfaces"
|
||||
import Illegitimate from "utils/Illegitimate"
|
||||
import { TextChannel } from "discord.js"
|
||||
const client = Illegitimate.client
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { GuildMember, userMention } from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import { Event } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color } from "config/options.json"
|
||||
import { Event } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "logNewJoins",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
||||
import color from "@utils/functions/colors"
|
||||
import { Event } from "@interfaces"
|
||||
import color from "utils/functions/colors"
|
||||
import { Event } from "interfaces"
|
||||
|
||||
export = {
|
||||
name: "logBtnsCmds",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Event } from "@interfaces"
|
||||
import { Event } from "interfaces"
|
||||
import { Message } from "discord.js"
|
||||
|
||||
export = {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { ChannelType, Message } from "discord.js"
|
||||
import { Event } from "@interfaces"
|
||||
import snipeCacheSchema from "@schemas/snipeCacheSchema"
|
||||
import { Event } from "interfaces"
|
||||
import snipeCacheSchema from "schemas/snipeCacheSchema"
|
||||
import mongoose from "mongoose"
|
||||
import { SnipeCache } from "@utils/Types"
|
||||
import { SnipeCache } from "utils/Types"
|
||||
|
||||
export = {
|
||||
name: "snipecache",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Event } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import color from "@utils/functions/colors"
|
||||
import { Event } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import color from "utils/functions/colors"
|
||||
|
||||
export = {
|
||||
name: "conolelog",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { Event } from "@interfaces"
|
||||
import { color } from "@config/options.json"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
import { Event } from "interfaces"
|
||||
import { color } from "config/options.json"
|
||||
|
||||
export = {
|
||||
name: "sendonlinemessage",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import statuses = require("@config/statuses.json")
|
||||
import { Event } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import statuses = require("config/statuses.json")
|
||||
import { Event } from "interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
|
||||
export = {
|
||||
name: "status",
|
||||
|
||||
@@ -3,9 +3,9 @@ import {
|
||||
channelMention,
|
||||
VoiceState,
|
||||
} from "discord.js"
|
||||
import { color } from "@config/options.json"
|
||||
import { Event } from "@interfaces"
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import { color } from "config/options.json"
|
||||
import { Event } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
|
||||
export = {
|
||||
name: "vcJoinLeave",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Illegitimate from "@utils/Illegitimate"
|
||||
import Illegitimate from "utils/Illegitimate"
|
||||
const illegitimate = new Illegitimate.Bot()
|
||||
|
||||
illegitimate.start()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
|
||||
export default interface Command {
|
||||
name: string
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Command } from "@interfaces"
|
||||
import { Command } from "interfaces"
|
||||
import color from "./functions/colors"
|
||||
import env from "./Env"
|
||||
import {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
||||
import color from "./functions/colors"
|
||||
import { Command } from "@interfaces"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { Button } from "@interfaces"
|
||||
import { Modal } from "@interfaces"
|
||||
import { Autocomplete } from "@interfaces"
|
||||
import { Command } from "interfaces"
|
||||
import { ContextMenu } from "interfaces"
|
||||
import { Button } from "interfaces"
|
||||
import { Modal } from "interfaces"
|
||||
import { Autocomplete } from "interfaces"
|
||||
import env from "./Env"
|
||||
import autoDeployCommands from "./Autodeploy"
|
||||
import { loadAllEvents } from "./Events"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Env } from "@interfaces"
|
||||
import { Env } from "interfaces"
|
||||
import "dotenv/config"
|
||||
|
||||
const env: Env = {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { loadButtonEvents } from "@utils/eventHandlers"
|
||||
import { loadSlashCommandsEvents } from "@utils/eventHandlers"
|
||||
import { loadContextMenuEvents } from "@utils/eventHandlers"
|
||||
import { loadModalEvents } from "@utils/eventHandlers"
|
||||
import { loadEvents } from "@utils/eventHandlers"
|
||||
import { loadAutocompleteEvents } from "@utils/eventHandlers"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import { loadButtonEvents } from "utils/eventHandlers"
|
||||
import { loadSlashCommandsEvents } from "utils/eventHandlers"
|
||||
import { loadContextMenuEvents } from "utils/eventHandlers"
|
||||
import { loadModalEvents } from "utils/eventHandlers"
|
||||
import { loadEvents } from "utils/eventHandlers"
|
||||
import { loadAutocompleteEvents } from "utils/eventHandlers"
|
||||
type FileType = "js" | "ts"
|
||||
|
||||
export function loadAllEvents(client: Client, ft: FileType) {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export { skywarsLevel } from "@utils/functions/skywars"
|
||||
export { bedwarsLevel } from "@utils/functions/bedwars"
|
||||
export { hypixelLevel } from "@utils/functions/hypixel"
|
||||
export { formatUuid } from "@utils/functions/uuid"
|
||||
export { guildLevel, scaledGEXP } from "@utils/functions/guild"
|
||||
export { skywarsLevel } from "utils/functions/skywars"
|
||||
export { bedwarsLevel } from "utils/functions/bedwars"
|
||||
export { hypixelLevel } from "utils/functions/hypixel"
|
||||
export { formatUuid } from "utils/functions/uuid"
|
||||
export { guildLevel, scaledGEXP } from "utils/functions/guild"
|
||||
export {
|
||||
getUUID,
|
||||
getIGN,
|
||||
getPlayer,
|
||||
getGuild,
|
||||
getHeadURL,
|
||||
} from "@utils/functions/account"
|
||||
} from "utils/functions/account"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import color from "@utils/functions/colors"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import color from "utils/functions/colors"
|
||||
import { Redis } from "ioredis"
|
||||
import env from "@utils/Env"
|
||||
import env from "utils/Env"
|
||||
import { connect } from "mongoose"
|
||||
import init from "@utils/Init"
|
||||
import { loadCronEvents } from "@utils/eventHandlers"
|
||||
import init from "utils/Init"
|
||||
import { loadCronEvents } from "utils/eventHandlers"
|
||||
const client = new Client()
|
||||
const redis = new Redis(env.prod.redisURI!)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import env from "@utils/Env"
|
||||
import env from "utils/Env"
|
||||
|
||||
const prodValues = env.prod
|
||||
const devValues = env.dev
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { color } from "@config/options.json"
|
||||
import { Autocomplete } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import { color } from "config/options.json"
|
||||
import { Autocomplete } from "interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Button } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import { color } from "config/options.json"
|
||||
import { Button } from "interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Command } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import { color } from "config/options.json"
|
||||
import { Command } from "interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { ContextMenu } from "@interfaces"
|
||||
import { color } from "@config/options.json"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import { ContextMenu } from "interfaces"
|
||||
import { color } from "config/options.json"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { CronJob } from "cron"
|
||||
import path from "path"
|
||||
import fs from "fs"
|
||||
import { Cron } from "@interfaces"
|
||||
import { Cron } from "interfaces"
|
||||
|
||||
export default function loadCronEvents() {
|
||||
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import { Event } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import { Event } from "interfaces"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import loadAutocompleteEvents from "@utils/eventHandlers/autocomplete"
|
||||
import loadButtonEvents from "@utils/eventHandlers/button"
|
||||
import loadSlashCommandsEvents from "@utils/eventHandlers/command"
|
||||
import loadContextMenuEvents from "@utils/eventHandlers/contextmenu"
|
||||
import loadCronEvents from "@utils/eventHandlers/cron"
|
||||
import loadEvents from "@utils/eventHandlers/events"
|
||||
import loadModalEvents from "@utils/eventHandlers/modal"
|
||||
import loadAutocompleteEvents from "utils/eventHandlers/autocomplete"
|
||||
import loadButtonEvents from "utils/eventHandlers/button"
|
||||
import loadSlashCommandsEvents from "utils/eventHandlers/command"
|
||||
import loadContextMenuEvents from "utils/eventHandlers/contextmenu"
|
||||
import loadCronEvents from "utils/eventHandlers/cron"
|
||||
import loadEvents from "utils/eventHandlers/events"
|
||||
import loadModalEvents from "utils/eventHandlers/modal"
|
||||
|
||||
export {
|
||||
loadAutocompleteEvents,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ExtendedClient as Client } from "@utils/Client"
|
||||
import colorLog from "@utils/functions/colors"
|
||||
import { color } from "@config/options.json"
|
||||
import { Modal } from "@interfaces"
|
||||
import { ExtendedClient as Client } from "utils/Client"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import { color } from "config/options.json"
|
||||
import { Modal } from "interfaces"
|
||||
import { Events } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
import logToChannel from "@utils/functions/logtochannel"
|
||||
import logToChannel from "utils/functions/logtochannel"
|
||||
type FileType = "js" | "ts"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fetch from "axios"
|
||||
import env from "@utils/Env"
|
||||
import { Player, PlayerData } from "@interfaces"
|
||||
import { Guild, GuildData } from "@interfaces"
|
||||
import env from "utils/Env"
|
||||
import { Player, PlayerData } from "interfaces"
|
||||
import { Guild, GuildData } from "interfaces"
|
||||
const apikey = env.prod.hypixelapikey
|
||||
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
||||
const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { guildid, onlineLogChannel, botLogChannel, guildLogChannel, errorLogChannel, moderationLogChannel, devLogChannel } from "@config/options.json"
|
||||
import { guildid, onlineLogChannel, botLogChannel, guildLogChannel, errorLogChannel, moderationLogChannel, devLogChannel } from "config/options.json"
|
||||
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
|
||||
import Illegitimate from "@utils/Illegitimate"
|
||||
import Illegitimate from "utils/Illegitimate"
|
||||
|
||||
const channels = {
|
||||
online: onlineLogChannel,
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
guildStaff,
|
||||
guildRole,
|
||||
defaultMember
|
||||
} from "@config/roles.json"
|
||||
} from "config/roles.json"
|
||||
const roles = [
|
||||
gm,
|
||||
manager,
|
||||
|
||||
Reference in New Issue
Block a user