Added absolute paths
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { ContextMenu } from "../interfaces"
|
import { ContextMenu } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "congratsmessage",
|
name: "congratsmessage",
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
ApplicationCommandType,
|
ApplicationCommandType,
|
||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { ContextMenu } from "../interfaces"
|
import { ContextMenu } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "resetnick",
|
name: "resetnick",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||||
import { color, devMessage, hypixelGuildID } from "../../config/options.json"
|
import { color, devMessage, hypixelGuildID } from "@config/options.json"
|
||||||
import { ContextMenu } from "../interfaces"
|
import { ContextMenu } from "@interfaces"
|
||||||
import verifySchema from "../schemas/verifySchema"
|
import verifySchema from "@schemas/verifySchema"
|
||||||
import { getGuild, getHeadURL, getIGN } from "../utils/Hypixel"
|
import { getGuild, getHeadURL, getIGN } from "@utils/Hypixel"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "Update User",
|
name: "Update User",
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { admin, helper } from "../../config/roles.json"
|
import { admin, helper } from "@config/roles.json"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "ban",
|
name: "ban",
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import {
|
|||||||
swkdr,
|
swkdr,
|
||||||
duelswins,
|
duelswins,
|
||||||
duelswlr,
|
duelswlr,
|
||||||
} from "../../config/reqs.json"
|
} from "@config/reqs.json"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import {
|
import {
|
||||||
hypixelLevel,
|
hypixelLevel,
|
||||||
bedwarsLevel,
|
bedwarsLevel,
|
||||||
@@ -17,8 +17,8 @@ import {
|
|||||||
getPlayer,
|
getPlayer,
|
||||||
getGuild,
|
getGuild,
|
||||||
getHeadURL,
|
getHeadURL,
|
||||||
} from "../utils/Hypixel"
|
} from "@utils/Hypixel"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "check",
|
name: "check",
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import {
|
|||||||
channelMention,
|
channelMention,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "clear",
|
name: "clear",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { color } from "../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import settings = require("../schemas/settingsSchema")
|
import settings from "@schemas/settingsSchema"
|
||||||
import mongoose = require("mongoose")
|
import mongoose from "mongoose"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "config",
|
name: "config",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ChannelType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
import { ChannelType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import setup from "./counting/setup"
|
import setup from "./counting/setup"
|
||||||
import ban from "./counting/ban"
|
import ban from "./counting/ban"
|
||||||
import unban from "./counting/unban"
|
import unban from "./counting/unban"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { countingBanned } from "../../../config/roles.json"
|
import { countingBanned } from "@config/roles.json"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
|
|
||||||
export default async function ban(
|
export default async function ban(
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js"
|
import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js"
|
||||||
import settingsSchema from "../../schemas/settingsSchema"
|
import settingsSchema from "@schemas/settingsSchema"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
|
|
||||||
export default async function setup(interaction: ChatInputCommandInteraction): Promise<void> {
|
export default async function setup(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { countingBanned } from "../../../config/roles.json"
|
import { countingBanned } from "@config/roles.json"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
|
|
||||||
export default async function ban(
|
export default async function ban(
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
ChatInputCommandInteraction,
|
ChatInputCommandInteraction,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
const command: Command = {
|
const command: Command = {
|
||||||
name: "dev-info",
|
name: "dev-info",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "devel",
|
name: "devel",
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
import { getIGN } from "../utils/Hypixel"
|
import { getIGN } from "@utils/Hypixel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceunverify",
|
name: "forceunverify",
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { getGuild, getHeadURL, getIGN } from "../utils/Hypixel"
|
import { getGuild, getHeadURL, getIGN } from "@utils/Hypixel"
|
||||||
import { hypixelGuildID, color, devMessage } from "../../config/options.json"
|
import { hypixelGuildID, color, devMessage } from "@config/options.json"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceupdate",
|
name: "forceupdate",
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||||
import { color, hypixelGuildID, devMessage } from "../../config/options.json"
|
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "forceverify",
|
name: "forceverify",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import guildMember from "./guild/member"
|
import guildMember from "./guild/member"
|
||||||
import guildInfo from "./guild/info"
|
import guildInfo from "./guild/info"
|
||||||
import guildTop from "./guild/top"
|
import guildTop from "./guild/top"
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import {
|
|||||||
getPlayer,
|
getPlayer,
|
||||||
getGuild,
|
getGuild,
|
||||||
guildLevel,
|
guildLevel,
|
||||||
} from "../../utils/Hypixel"
|
} from "@utils/Hypixel"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
import { GuildData } from "../../interfaces/Guild"
|
import { GuildData } from "@interfaces"
|
||||||
|
|
||||||
export default async function guildInfo(
|
export default async function guildInfo(
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "../../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
|
|
||||||
export default async function guildMember(
|
export default async function guildMember(
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { getUUID, getPlayer, getGuild, getIGN } from "../../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getIGN } from "@utils/Hypixel"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
||||||
import { GuildData } from "../../interfaces/Guild"
|
import { GuildData } from "@interfaces"
|
||||||
import Illegitimate from "../../utils/Illegitimate"
|
import Illegitimate from "@utils/Illegitimate"
|
||||||
const redis = Illegitimate.redis
|
const redis = Illegitimate.redis
|
||||||
|
|
||||||
export default async function guildTop(
|
export default async function guildTop(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "help",
|
name: "help",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { color, devMessage, instructionsgif } from "../../config/options.json"
|
import { color, devMessage, instructionsgif } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "instructions",
|
name: "instructions",
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { admin, helper } from "../../config/roles.json"
|
import { admin, helper } from "@config/roles.json"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "kick",
|
name: "kick",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "ping",
|
name: "ping",
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import waitinglistSchema = require("../schemas/waitinglistSchema")
|
import waitinglistSchema from "@schemas/waitinglistSchema"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "remove",
|
name: "remove",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import {
|
import {
|
||||||
bwfkdr,
|
bwfkdr,
|
||||||
bwstars,
|
bwstars,
|
||||||
@@ -8,8 +8,8 @@ import {
|
|||||||
swkdr,
|
swkdr,
|
||||||
duelswins,
|
duelswins,
|
||||||
duelswlr,
|
duelswlr,
|
||||||
} from "../../config/reqs.json"
|
} from "@config/reqs.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "reqs",
|
name: "reqs",
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import {
|
|||||||
ChannelType,
|
ChannelType,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "send",
|
name: "send",
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "setnick",
|
name: "setnick",
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import {
|
|||||||
ChannelType,
|
ChannelType,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "setup",
|
name: "setup",
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
channelMention,
|
channelMention,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "slowmode",
|
name: "slowmode",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||||
import snipeCacheSchema from "../schemas/snipeCacheSchema"
|
import snipeCacheSchema from "@schemas/snipeCacheSchema"
|
||||||
import Command from "../interfaces/Command"
|
import { Command } from "@interfaces"
|
||||||
import { color } from "../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { SnipeCache } from "../utils/Types"
|
import { SnipeCache } from "@utils/Types"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "snipe",
|
name: "snipe",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import help from "./staff/help"
|
import help from "./staff/help"
|
||||||
import beast from "./staff/beast"
|
import beast from "./staff/beast"
|
||||||
import updateDiscordRoles from "./staff/updatediscordroles"
|
import updateDiscordRoles from "./staff/updatediscordroles"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import {
|
|||||||
beastswstars,
|
beastswstars,
|
||||||
beastduelswins,
|
beastduelswins,
|
||||||
duelswlr,
|
duelswlr,
|
||||||
} from "../../../config/reqs.json"
|
} from "@config/reqs.json"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import {
|
import {
|
||||||
hypixelLevel,
|
hypixelLevel,
|
||||||
bedwarsLevel,
|
bedwarsLevel,
|
||||||
@@ -16,7 +16,7 @@ import {
|
|||||||
getPlayer,
|
getPlayer,
|
||||||
getGuild,
|
getGuild,
|
||||||
getHeadURL,
|
getHeadURL,
|
||||||
} from "../../utils/Hypixel"
|
} from "@utils/Hypixel"
|
||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
|
|
||||||
export default async function beast(
|
export default async function beast(
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { ExtendedClient as Client } from "../../utils/Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
|
|
||||||
export default async function help(
|
export default async function help(
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import verify = require("../../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { color, hypixelGuildID } from "../../../config/options.json"
|
import { color, hypixelGuildID } from "@config/options.json"
|
||||||
import roleManage from "../../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||||
import env from "../../utils/Env"
|
import env from "@utils/Env"
|
||||||
import { getGuild } from "../../utils/Hypixel"
|
import { getGuild } from "@utils/Hypixel"
|
||||||
import { GuildData } from "../../interfaces"
|
import { GuildData } from "@interfaces"
|
||||||
|
|
||||||
export default async function updateDiscordRoles(
|
export default async function updateDiscordRoles(
|
||||||
interaction: ChatInputCommandInteraction,
|
interaction: ChatInputCommandInteraction,
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ import {
|
|||||||
ChatInputCommandInteraction,
|
ChatInputCommandInteraction,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import ms from "ms"
|
import ms from "ms"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
const command: Command = {
|
const command: Command = {
|
||||||
name: "timeout",
|
name: "timeout",
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import {
|
|||||||
userMention,
|
userMention,
|
||||||
User,
|
User,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import logToChannel from "../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||||
import { getGuild, getIGN, getHeadURL } from "../utils/Hypixel"
|
import { getGuild, getIGN, getHeadURL } from "@utils/Hypixel"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { color, hypixelGuildID, devMessage } from "../../config/options.json"
|
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "update",
|
name: "update",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "../utils/Hypixel"
|
import { getUUID, getIGN, getHeadURL, formatUuid } from "@utils/Hypixel"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "uuid",
|
name: "uuid",
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
import { GuildMember, SlashCommandBuilder } from "discord.js"
|
||||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||||
import { color, hypixelGuildID, devMessage } from "../../config/options.json"
|
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import roleManage from "../utils/functions/rolesmanage"
|
import roleManage from "@utils/functions/rolesmanage"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { PlayerData } from "../interfaces/Player"
|
import { PlayerData } from "@interfaces"
|
||||||
import { GuildData } from "../interfaces/Guild"
|
import { GuildData } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "verify",
|
name: "verify",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { SlashCommandBuilder, userMention } from "discord.js"
|
import { SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import verify from "../schemas/verifySchema"
|
import verify from "@schemas/verifySchema"
|
||||||
import { getIGN, getHeadURL } from "../utils/Hypixel"
|
import { getIGN, getHeadURL } from "@utils/Hypixel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "whoami",
|
name: "whoami",
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import {
|
|||||||
PermissionFlagsBits,
|
PermissionFlagsBits,
|
||||||
userMention,
|
userMention,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { getIGN, getHeadURL } from "../utils/Hypixel"
|
import { getIGN, getHeadURL } from "@utils/Hypixel"
|
||||||
import { color, devMessage } from "../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import verify = require("../schemas/verifySchema")
|
import verify from "@schemas/verifySchema"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "whois",
|
name: "whois",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Autocomplete } from "../../interfaces"
|
import { Autocomplete } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { color, devMessage } from "../../../config/options.json"
|
import { color, devMessage } from "@config/options.json"
|
||||||
import guildapp from "../../schemas/guildAppSchema"
|
import guildapp from "@schemas/guildAppSchema"
|
||||||
import {
|
import {
|
||||||
bwfkdr,
|
bwfkdr,
|
||||||
bwstars,
|
bwstars,
|
||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
swkdr,
|
swkdr,
|
||||||
duelswins,
|
duelswins,
|
||||||
duelswlr,
|
duelswlr,
|
||||||
} from "../../../config/reqs.json"
|
} from "@config/reqs.json"
|
||||||
import {
|
import {
|
||||||
hypixelLevel,
|
hypixelLevel,
|
||||||
bedwarsLevel,
|
bedwarsLevel,
|
||||||
@@ -16,8 +16,8 @@ import {
|
|||||||
getPlayer,
|
getPlayer,
|
||||||
getGuild,
|
getGuild,
|
||||||
getHeadURL,
|
getHeadURL,
|
||||||
} from "../../utils/Hypixel"
|
} from "@utils/Hypixel"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "checkstats",
|
name: "checkstats",
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ import {
|
|||||||
waitingListChannel,
|
waitingListChannel,
|
||||||
waitingListMessage,
|
waitingListMessage,
|
||||||
hypixelGuildID,
|
hypixelGuildID,
|
||||||
} from "../../../config/options.json"
|
} from "@config/options.json"
|
||||||
import colorLog from "../../utils/functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import guildapp from "../../schemas/guildAppSchema"
|
import guildapp from "@schemas/guildAppSchema"
|
||||||
import waitingList from "../../schemas/waitinglistSchema"
|
import waitingList from "@schemas/waitinglistSchema"
|
||||||
import { waitingListRole } from "../../../config/roles.json"
|
import { waitingListRole } from "@config/roles.json"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
import { getGuild } from "../../utils/Hypixel"
|
import { getGuild } from "@utils/Hypixel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "guildapplicationaccept",
|
name: "guildapplicationaccept",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
TextInputBuilder,
|
TextInputBuilder,
|
||||||
TextInputStyle,
|
TextInputStyle,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "guildapplicationdeny",
|
name: "guildapplicationdeny",
|
||||||
|
|||||||
@@ -6,15 +6,15 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { largeM, smallM, ignM } from "../../../config/limitmessages.json"
|
import { largeM, smallM, ignM } from "@config/limitmessages.json"
|
||||||
import { applicationsChannel } from "../../../config/options.json"
|
import { applicationsChannel } from "@config/options.json"
|
||||||
import questions from "../../../config/questions.json"
|
import questions from "@config/questions.json"
|
||||||
import { guildRole } from "../../../config/roles.json"
|
import { guildRole } from "@config/roles.json"
|
||||||
import { getUUID } from "../../utils/Hypixel"
|
import { getUUID } from "@utils/Hypixel"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import guildapp from "../../schemas/guildAppSchema"
|
import guildapp from "@schemas/guildAppSchema"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "guildapply",
|
name: "guildapply",
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ import {
|
|||||||
member,
|
member,
|
||||||
guildStaff,
|
guildStaff,
|
||||||
guildRole,
|
guildRole,
|
||||||
} from "../../../config/roles.json"
|
} from "@config/roles.json"
|
||||||
import { ignM, smallM, largeM } from "../../../config/limitmessages.json"
|
import { ignM, smallM, largeM } from "@config/limitmessages.json"
|
||||||
import { inactivity } from "../../../config/questions.json"
|
import { inactivity } from "@config/questions.json"
|
||||||
import { color, inactivityLogChannel } from "../../../config/options.json"
|
import { color, inactivityLogChannel } from "@config/options.json"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
const guildRoles = [
|
const guildRoles = [
|
||||||
gm,
|
gm,
|
||||||
manager,
|
manager,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "inactiveapplicationaccept",
|
name: "inactiveapplicationaccept",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "inactiveapplicationdeny",
|
name: "inactiveapplicationdeny",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import staffapp from "../../schemas/staffAppSchema"
|
import staffapp from "@schemas/staffAppSchema"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffapplicationaccept",
|
name: "staffapplicationaccept",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
TextInputBuilder,
|
TextInputBuilder,
|
||||||
TextInputStyle,
|
TextInputStyle,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffapplicationdeny",
|
name: "staffapplicationdeny",
|
||||||
|
|||||||
@@ -6,16 +6,16 @@ import {
|
|||||||
GuildMember,
|
GuildMember,
|
||||||
TextChannel,
|
TextChannel,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color, staffApplicationsChannel } from "../../../config/options.json"
|
import { color, staffApplicationsChannel } from "@config/options.json"
|
||||||
import { largeM, ignM } from "../../../config/limitmessages.json"
|
import { largeM, ignM } from "@config/limitmessages.json"
|
||||||
import questions from "../../../config/questions.json"
|
import questions from "@config/questions.json"
|
||||||
import { guildRole, guildStaff } from "../../../config/roles.json"
|
import { guildRole, guildStaff } from "@config/roles.json"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import staffapp from "../../schemas/staffAppSchema"
|
import staffapp from "@schemas/staffAppSchema"
|
||||||
import settings from "../../schemas/settingsSchema"
|
import settings from "@schemas/settingsSchema"
|
||||||
import { getUUID } from "../../utils/Hypixel"
|
import { getUUID } from "@utils/Hypixel"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
import env from "../../utils/Env"
|
import env from "@utils/Env"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffapply",
|
name: "staffapply",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
TextInputBuilder,
|
TextInputBuilder,
|
||||||
TextInputStyle,
|
TextInputStyle,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "verify",
|
name: "verify",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import waitinglist from "../../schemas/waitinglistSchema"
|
import waitinglist from "@schemas/waitinglistSchema"
|
||||||
import { getGuild } from "../../utils/Hypixel"
|
import { getGuild } from "@utils/Hypixel"
|
||||||
import { hypixelGuildID } from "../../../config/options.json"
|
import { hypixelGuildID } from "@config/options.json"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "waitinglistupdate",
|
name: "waitinglistupdate",
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import {
|
|||||||
Message,
|
Message,
|
||||||
GuildMember,
|
GuildMember,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import guildapp from "../../schemas/guildAppSchema"
|
import guildapp from "@schemas/guildAppSchema"
|
||||||
import { Modal } from "../../interfaces"
|
import { Modal } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "denyreasonbox",
|
name: "denyreasonbox",
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import {
|
|||||||
ButtonBuilder,
|
ButtonBuilder,
|
||||||
ButtonStyle,
|
ButtonStyle,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import staffapp from "../../schemas/staffAppSchema"
|
import staffapp from "@schemas/staffAppSchema"
|
||||||
import { Modal } from "../../interfaces"
|
import { Modal } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffdenyreasonbox",
|
name: "staffdenyreasonbox",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "../../utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getHeadURL } from "@utils/Hypixel"
|
||||||
import { color, hypixelGuildID, devMessage } from "../../../config/options.json"
|
import { color, hypixelGuildID, devMessage } from "@config/options.json"
|
||||||
import verify from "../../schemas/verifySchema"
|
import verify from "@schemas/verifySchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import {
|
import {
|
||||||
gm,
|
gm,
|
||||||
@@ -12,8 +12,8 @@ import {
|
|||||||
guildRole,
|
guildRole,
|
||||||
guildStaff,
|
guildStaff,
|
||||||
defaultMember,
|
defaultMember,
|
||||||
} from "../../../config/roles.json"
|
} from "@config/roles.json"
|
||||||
import { Modal } from "../../interfaces"
|
import { Modal } from "@interfaces"
|
||||||
import { GuildMember } from "discord.js"
|
import { GuildMember } from "discord.js"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import {
|
|||||||
guildLogChannel,
|
guildLogChannel,
|
||||||
color,
|
color,
|
||||||
devMessage,
|
devMessage,
|
||||||
} from "../../../config/options.json"
|
} from "@config/options.json"
|
||||||
import colorLog from "../../utils/functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import { getGuild, getIGN } from "../../utils/Hypixel"
|
import { getGuild, getIGN } from "@utils/Hypixel"
|
||||||
import { Cron, GuildData } from "../../interfaces"
|
import { Cron, GuildData } from "@interfaces"
|
||||||
import Illegitimate from "../../utils/Illegitimate"
|
import Illegitimate from "@utils/Illegitimate"
|
||||||
import { TextChannel } from "discord.js"
|
import { TextChannel } from "discord.js"
|
||||||
const client = Illegitimate.client
|
const client = Illegitimate.client
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { GuildMember, userMention } from "discord.js"
|
import { GuildMember, userMention } from "discord.js"
|
||||||
import { color } from "../../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import logToChannel from "../../../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "logNewJoins",
|
name: "logNewJoins",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
|
||||||
import color from "../../../utils/functions/colors"
|
import color from "@utils/functions/colors"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "logBtnsCmds",
|
name: "logBtnsCmds",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import { Message } from "discord.js"
|
import { Message } from "discord.js"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { ChannelType, Message } from "discord.js"
|
import { ChannelType, Message } from "discord.js"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import snipeCacheSchema from "../../../schemas/snipeCacheSchema"
|
import snipeCacheSchema from "@schemas/snipeCacheSchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import { SnipeCache } from "../../../utils/Types"
|
import { SnipeCache } from "@utils/Types"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "snipecache",
|
name: "snipecache",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import { ExtendedClient as Client } from "../../../utils/Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import color from "../../../utils/functions/colors"
|
import color from "@utils/functions/colors"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "conolelog",
|
name: "conolelog",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import logToChannel from "../../../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import { color } from "../../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "sendonlinemessage",
|
name: "sendonlinemessage",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import statuses = require("../../../../config/statuses.json")
|
import statuses = require("@config/statuses.json")
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import { ExtendedClient as Client } from "../../../utils/Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "status",
|
name: "status",
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import {
|
|||||||
channelMention,
|
channelMention,
|
||||||
VoiceState,
|
VoiceState,
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
import { color } from "../../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Event } from "../../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import logToChannel from "../../../utils/functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "vcJoinLeave",
|
name: "vcJoinLeave",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Illegitimate from "./utils/Illegitimate"
|
import Illegitimate from "@utils/Illegitimate"
|
||||||
const illegitimate = new Illegitimate.Bot()
|
const illegitimate = new Illegitimate.Bot()
|
||||||
|
|
||||||
illegitimate.start()
|
illegitimate.start()
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js"
|
||||||
import { ExtendedClient as Client } from "../utils/Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
|
|
||||||
export default interface Command {
|
export default interface Command {
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import color from "./functions/colors"
|
import color from "./functions/colors"
|
||||||
import env from "./Env"
|
import env from "./Env"
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
|
||||||
import color from "./functions/colors"
|
import color from "./functions/colors"
|
||||||
import { Command } from "../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import { ContextMenu } from "../interfaces"
|
import { ContextMenu } from "@interfaces"
|
||||||
import { Button } from "../interfaces"
|
import { Button } from "@interfaces"
|
||||||
import { Modal } from "../interfaces"
|
import { Modal } from "@interfaces"
|
||||||
import { Autocomplete } from "../interfaces"
|
import { Autocomplete } from "@interfaces"
|
||||||
import env from "./Env"
|
import env from "./Env"
|
||||||
import autoDeployCommands from "./Autodeploy"
|
import autoDeployCommands from "./Autodeploy"
|
||||||
import { loadAllEvents } from "./Events"
|
import { loadAllEvents } from "./Events"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Env } from "../interfaces"
|
import { Env } from "@interfaces"
|
||||||
import "dotenv/config"
|
import "dotenv/config"
|
||||||
|
|
||||||
const env: Env = {
|
const env: Env = {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { ExtendedClient as Client } from "./Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import { loadButtonEvents } from "./eventHandlers"
|
import { loadButtonEvents } from "@utils/eventHandlers"
|
||||||
import { loadSlashCommandsEvents } from "./eventHandlers"
|
import { loadSlashCommandsEvents } from "@utils/eventHandlers"
|
||||||
import { loadContextMenuEvents } from "./eventHandlers"
|
import { loadContextMenuEvents } from "@utils/eventHandlers"
|
||||||
import { loadModalEvents } from "./eventHandlers"
|
import { loadModalEvents } from "@utils/eventHandlers"
|
||||||
import { loadEvents } from "./eventHandlers"
|
import { loadEvents } from "@utils/eventHandlers"
|
||||||
import { loadAutocompleteEvents } from "./eventHandlers"
|
import { loadAutocompleteEvents } from "@utils/eventHandlers"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
|
|
||||||
export function loadAllEvents(client: Client, ft: FileType) {
|
export function loadAllEvents(client: Client, ft: FileType) {
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
export { skywarsLevel } from "./functions/skywars"
|
export { skywarsLevel } from "@utils/functions/skywars"
|
||||||
export { bedwarsLevel } from "./functions/bedwars"
|
export { bedwarsLevel } from "@utils/functions/bedwars"
|
||||||
export { hypixelLevel } from "./functions/hypixel"
|
export { hypixelLevel } from "@utils/functions/hypixel"
|
||||||
export { formatUuid } from "./functions/uuid"
|
export { formatUuid } from "@utils/functions/uuid"
|
||||||
export { guildLevel, scaledGEXP } from "./functions/guild"
|
export { guildLevel, scaledGEXP } from "@utils/functions/guild"
|
||||||
export {
|
export {
|
||||||
getUUID,
|
getUUID,
|
||||||
getIGN,
|
getIGN,
|
||||||
getPlayer,
|
getPlayer,
|
||||||
getGuild,
|
getGuild,
|
||||||
getHeadURL,
|
getHeadURL,
|
||||||
} from "./functions/account"
|
} from "@utils/functions/account"
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { ExtendedClient as Client } from "./Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import color from "./functions/colors"
|
import color from "@utils/functions/colors"
|
||||||
import { Redis } from "ioredis"
|
import { Redis } from "ioredis"
|
||||||
import env from "./Env"
|
import env from "@utils/Env"
|
||||||
import { connect } from "mongoose"
|
import { connect } from "mongoose"
|
||||||
import init from "./Init"
|
import init from "@utils/Init"
|
||||||
import { loadCronEvents } from "./eventHandlers"
|
import { loadCronEvents } from "@utils/eventHandlers"
|
||||||
const client = new Client()
|
const client = new Client()
|
||||||
const redis = new Redis(env.prod.redisURI!)
|
const redis = new Redis(env.prod.redisURI!)
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import env from "./Env"
|
import env from "@utils/Env"
|
||||||
|
|
||||||
const prodValues = env.prod
|
const prodValues = env.prod
|
||||||
const devValues = env.dev
|
const devValues = env.dev
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Autocomplete } from "../../interfaces"
|
import { Autocomplete } from "@interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import colorLog from "../functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
import logToChannel from "../functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import colorLog from "../functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Button } from "../../interfaces"
|
import { Button } from "@interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
import logToChannel from "../functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import colorLog from "../functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Command } from "../../interfaces"
|
import { Command } from "@interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
import logToChannel from "../functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import colorLog from "../functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import { ContextMenu } from "../../interfaces"
|
import { ContextMenu } from "@interfaces"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
import logToChannel from "../functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { CronJob } from "cron"
|
import { CronJob } from "cron"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import { Cron } from "../../interfaces"
|
import { Cron } from "@interfaces"
|
||||||
|
|
||||||
export default function loadCronEvents() {
|
export default function loadCronEvents() {
|
||||||
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import { Event } from "../../interfaces"
|
import { Event } from "@interfaces"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import loadAutocompleteEvents from "./autocomplete"
|
import loadAutocompleteEvents from "@utils/eventHandlers/autocomplete"
|
||||||
import loadButtonEvents from "./button"
|
import loadButtonEvents from "@utils/eventHandlers/button"
|
||||||
import loadSlashCommandsEvents from "./command"
|
import loadSlashCommandsEvents from "@utils/eventHandlers/command"
|
||||||
import loadContextMenuEvents from "./contextmenu"
|
import loadContextMenuEvents from "@utils/eventHandlers/contextmenu"
|
||||||
import loadCronEvents from "./cron"
|
import loadCronEvents from "@utils/eventHandlers/cron"
|
||||||
import loadEvents from "./events"
|
import loadEvents from "@utils/eventHandlers/events"
|
||||||
import loadModalEvents from "./modal"
|
import loadModalEvents from "@utils/eventHandlers/modal"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
loadAutocompleteEvents,
|
loadAutocompleteEvents,
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { ExtendedClient as Client } from "../Client"
|
import { ExtendedClient as Client } from "@utils/Client"
|
||||||
import colorLog from "../functions/colors"
|
import colorLog from "@utils/functions/colors"
|
||||||
import { color } from "../../../config/options.json"
|
import { color } from "@config/options.json"
|
||||||
import { Modal } from "../../interfaces"
|
import { Modal } from "@interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path = require("path")
|
import path = require("path")
|
||||||
import fs = require("fs")
|
import fs = require("fs")
|
||||||
import logToChannel from "../functions/logtochannel"
|
import logToChannel from "@utils/functions/logtochannel"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
const embedColor = Number(color.replace("#", "0x"))
|
const embedColor = Number(color.replace("#", "0x"))
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import fetch from "axios"
|
import fetch from "axios"
|
||||||
import env from "../Env"
|
import env from "@utils/Env"
|
||||||
import { Player, PlayerData } from "../../interfaces"
|
import { Player, PlayerData } from "@interfaces"
|
||||||
import { Guild, GuildData } from "../../interfaces"
|
import { Guild, GuildData } from "@interfaces"
|
||||||
const apikey = env.prod.hypixelapikey
|
const apikey = env.prod.hypixelapikey
|
||||||
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
||||||
const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/"
|
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 { Guild, MessageCreateOptions, TextChannel } from "discord.js"
|
||||||
import Illegitimate from "../Illegitimate"
|
import Illegitimate from "@utils/Illegitimate"
|
||||||
|
|
||||||
const channels = {
|
const channels = {
|
||||||
online: onlineLogChannel,
|
online: onlineLogChannel,
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
guildStaff,
|
guildStaff,
|
||||||
guildRole,
|
guildRole,
|
||||||
defaultMember
|
defaultMember
|
||||||
} from "../../../config/roles.json"
|
} from "@config/roles.json"
|
||||||
const roles = [
|
const roles = [
|
||||||
gm,
|
gm,
|
||||||
manager,
|
manager,
|
||||||
|
|||||||
@@ -11,7 +11,14 @@
|
|||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"outDir": "dist"
|
"outDir": "dist",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./src/*"],
|
||||||
|
"@utils/*": ["./src/utils/*"],
|
||||||
|
"@interfaces": ["./src/interfaces/index"],
|
||||||
|
"@schemas/*": ["./src/schemas/*"],
|
||||||
|
"@config/*": ["./config/*"],
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"include": ["src"],
|
"include": ["src"],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
|
|||||||
Reference in New Issue
Block a user