From 017d7a613fb1af2da8305ba61acbec989747a76a Mon Sep 17 00:00:00 2001 From: Taken Date: Tue, 30 Jan 2024 11:17:28 +0100 Subject: [PATCH] Updated configs to ts files --- src/commands-contextmenu/updateuser.ts | 2 +- src/commands/ban.ts | 4 +- src/commands/botinfo.ts | 2 +- src/commands/check.ts | 6 +- src/commands/clear.ts | 2 +- src/commands/config.ts | 2 +- src/commands/counting.ts | 2 +- src/commands/counting/ban.ts | 4 +- src/commands/counting/setup.ts | 2 +- src/commands/counting/unban.ts | 4 +- src/commands/forceunverify.ts | 2 +- src/commands/forceupdate.ts | 2 +- src/commands/forceverify.ts | 4 +- src/commands/guild.ts | 2 +- src/commands/guild/info.ts | 2 +- src/commands/guild/member.ts | 2 +- src/commands/guild/top.ts | 2 +- src/commands/help.ts | 2 +- src/commands/instructions.ts | 2 +- src/commands/kick.ts | 4 +- src/commands/ping.ts | 2 +- src/commands/pp.ts | 2 +- src/commands/remove.ts | 2 +- src/commands/reqs.ts | 4 +- src/commands/send.ts | 2 +- src/commands/setnick.ts | 2 +- src/commands/setup.ts | 2 +- src/commands/slowmode.ts | 2 +- src/commands/snipe.ts | 2 +- src/commands/staff.ts | 2 +- src/commands/staff/beast.ts | 4 +- src/commands/staff/help.ts | 2 +- src/commands/staff/prune.ts | 2 +- src/commands/staff/updatediscordroles.ts | 4 +- src/commands/timeout.ts | 2 +- src/commands/unban.ts | 2 +- src/commands/update.ts | 2 +- src/commands/uuid.ts | 2 +- src/commands/verify.ts | 2 +- src/commands/whoami.ts | 2 +- src/commands/whois.ts | 2 +- src/components/buttons/checkstats.ts | 4 +- .../buttons/guildapplicationaccept.ts | 4 +- src/components/buttons/guildapply.ts | 10 +-- src/components/buttons/guildinactivitylog.ts | 8 +- .../buttons/staffapplicationaccept.ts | 2 +- src/components/buttons/staffapply.ts | 8 +- src/components/buttons/waitingListUpdate.ts | 2 +- src/components/modals/denyreasonbox.ts | 2 +- src/components/modals/staffdenyreasonbox.ts | 2 +- src/components/modals/verifyModal.ts | 4 +- src/config/limitmessages.json | 5 -- src/config/limitmessages.ts | 6 ++ src/config/options.json | 19 ----- src/config/options.ts | 21 +++++ src/config/questions.json | 76 ------------------ src/config/questions.ts | 77 +++++++++++++++++++ src/config/reqs.json | 14 ---- src/config/reqs.ts | 15 ++++ src/config/roles.json | 17 ---- src/config/roles.ts | 18 +++++ src/config/statuses.json | 10 --- src/config/statuses.ts | 11 +++ src/events/cron/weeklyGexp.ts | 2 +- .../server/guildMemberAdd/logNewJoins.ts | 2 +- src/events/server/ready/sendOnlineMessage.ts | 2 +- src/events/server/ready/status.ts | 2 +- .../server/voiceStateUpdate/vcJoinLeave.ts | 2 +- src/utils/Events/autocomplete.ts | 2 +- src/utils/Events/button.ts | 2 +- src/utils/Events/command.ts | 2 +- src/utils/Events/contextmenu.ts | 2 +- src/utils/Events/modal.ts | 2 +- src/utils/functions/logtochannel.ts | 2 +- src/utils/functions/rolesmanage.ts | 2 +- 75 files changed, 234 insertions(+), 227 deletions(-) delete mode 100644 src/config/limitmessages.json create mode 100644 src/config/limitmessages.ts delete mode 100644 src/config/options.json create mode 100644 src/config/options.ts delete mode 100644 src/config/questions.json create mode 100644 src/config/questions.ts delete mode 100644 src/config/reqs.json create mode 100644 src/config/reqs.ts delete mode 100644 src/config/roles.json create mode 100644 src/config/roles.ts delete mode 100644 src/config/statuses.json create mode 100644 src/config/statuses.ts diff --git a/src/commands-contextmenu/updateuser.ts b/src/commands-contextmenu/updateuser.ts index 47e06e2..387aa1e 100644 --- a/src/commands-contextmenu/updateuser.ts +++ b/src/commands-contextmenu/updateuser.ts @@ -1,5 +1,5 @@ import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" -import { color, devMessage, hypixelGuildID } from "config/options.json" +import { color, devMessage, hypixelGuildID } from "config/options" import { ContextMenu } from "interfaces" import verifySchema from "schemas/verifySchema" import { getGuild, getHeadURL, getIGN } from "utils/Hypixel" diff --git a/src/commands/ban.ts b/src/commands/ban.ts index 686ea4d..60cad65 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js" -import { admin, helper } from "config/roles.json" -import { color, devMessage } from "config/options.json" +import { admin, helper } from "config/roles" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index c6f8aa1..f525b91 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder } from "discord.js" import { Command } from "interfaces" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import os from "os" import { execSync } from "child_process" const { dependencies, devDependencies } = require("../../package.json") diff --git a/src/commands/check.ts b/src/commands/check.ts index db04735..52879a8 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -1,13 +1,13 @@ import { SlashCommandBuilder } from "discord.js" -import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.json" -import { color, devMessage } from "config/options.json" +import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs" +import { color, devMessage } from "config/options" import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" import { Command } from "interfaces" export = { name: "check", description: "Check a player's stats.", - dev: false, + dev: true, public: true, data: new SlashCommandBuilder() diff --git a/src/commands/clear.ts b/src/commands/clear.ts index 076ecf1..cc8acb7 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, TextChannel, channelMention, userMention } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/config.ts b/src/commands/config.ts index a4b2684..2f5ed7a 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import settings from "schemas/settingsSchema" import mongoose from "mongoose" import { Command } from "interfaces" diff --git a/src/commands/counting.ts b/src/commands/counting.ts index 69d9cc4..fa3e013 100644 --- a/src/commands/counting.ts +++ b/src/commands/counting.ts @@ -1,5 +1,5 @@ import { ChannelType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import setup from "./counting/setup" import ban from "./counting/ban" diff --git a/src/commands/counting/ban.ts b/src/commands/counting/ban.ts index dc0e481..848f7b2 100644 --- a/src/commands/counting/ban.ts +++ b/src/commands/counting/ban.ts @@ -1,6 +1,6 @@ import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js" -import { countingBanned } from "config/roles.json" -import { color, devMessage } from "config/options.json" +import { countingBanned } from "config/roles" +import { color, devMessage } from "config/options" export default async function ban(interaction: ChatInputCommandInteraction): Promise { const member = interaction.options.getMember("user")! as GuildMember diff --git a/src/commands/counting/setup.ts b/src/commands/counting/setup.ts index 98b7c21..de7c4da 100644 --- a/src/commands/counting/setup.ts +++ b/src/commands/counting/setup.ts @@ -1,6 +1,6 @@ import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js" import settingsSchema from "schemas/settingsSchema" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import mongoose from "mongoose" export default async function setup(interaction: ChatInputCommandInteraction): Promise { diff --git a/src/commands/counting/unban.ts b/src/commands/counting/unban.ts index b73e45d..3e7bf36 100644 --- a/src/commands/counting/unban.ts +++ b/src/commands/counting/unban.ts @@ -1,6 +1,6 @@ import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js" -import { countingBanned } from "config/roles.json" -import { color, devMessage } from "config/options.json" +import { countingBanned } from "config/roles" +import { color, devMessage } from "config/options" export default async function ban(interaction: ChatInputCommandInteraction): Promise { const member = interaction.options.getMember("user")! as GuildMember diff --git a/src/commands/forceunverify.ts b/src/commands/forceunverify.ts index 121a802..dc0fad2 100644 --- a/src/commands/forceunverify.ts +++ b/src/commands/forceunverify.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import verify from "schemas/verifySchema" import { Command } from "interfaces" import roleManage from "utils/functions/rolesmanage" diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index 77088df..317b166 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js" import { getGuild, getHeadURL, getIGN } from "utils/Hypixel" -import { hypixelGuildID, color, devMessage } from "config/options.json" +import { hypixelGuildID, color, devMessage } from "config/options" import verify from "schemas/verifySchema" import { Command } from "interfaces" import roleManage from "utils/functions/rolesmanage" diff --git a/src/commands/forceverify.ts b/src/commands/forceverify.ts index 8058e3b..cad5c31 100644 --- a/src/commands/forceverify.ts +++ b/src/commands/forceverify.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, PermissionFlagsBits, GuildMember, userMention } from "discord.js" import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" -import { color, hypixelGuildID, devMessage } from "config/options.json" +import { color, hypixelGuildID, devMessage } from "config/options" import verify from "schemas/verifySchema" import mongoose from "mongoose" import roleManage from "utils/functions/rolesmanage" @@ -155,7 +155,7 @@ export = { } } - await user.roles.add( roleManage("default").rolesToAdd, "User was force verified by " + modName) + await user.roles.add(roleManage("default").rolesToAdd, "User was force verified by " + modName) const newVerify = new verify({ _id: new mongoose.Types.ObjectId(), diff --git a/src/commands/guild.ts b/src/commands/guild.ts index 9264f3f..006f6cf 100644 --- a/src/commands/guild.ts +++ b/src/commands/guild.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import guildMember from "./guild/member" import guildInfo from "./guild/info" diff --git a/src/commands/guild/info.ts b/src/commands/guild/info.ts index cdd099d..373b71c 100644 --- a/src/commands/guild/info.ts +++ b/src/commands/guild/info.ts @@ -1,5 +1,5 @@ import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { ChatInputCommandInteraction } from "discord.js" import { GuildData } from "interfaces" diff --git a/src/commands/guild/member.ts b/src/commands/guild/member.ts index dcfc5a0..2ff3fc1 100644 --- a/src/commands/guild/member.ts +++ b/src/commands/guild/member.ts @@ -1,5 +1,5 @@ import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { ChatInputCommandInteraction } from "discord.js" export default async function guildMember(interaction: ChatInputCommandInteraction): Promise { diff --git a/src/commands/guild/top.ts b/src/commands/guild/top.ts index 28359f3..64a8e98 100644 --- a/src/commands/guild/top.ts +++ b/src/commands/guild/top.ts @@ -1,5 +1,5 @@ import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { ChannelType, ChatInputCommandInteraction } from "discord.js" import { GuildData } from "interfaces" import { redis } from "utils/Illegitimate" diff --git a/src/commands/help.ts b/src/commands/help.ts index 972fc73..30bedcd 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" export = { diff --git a/src/commands/instructions.ts b/src/commands/instructions.ts index 9404db2..d82c8bf 100644 --- a/src/commands/instructions.ts +++ b/src/commands/instructions.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js" -import { color, devMessage, instructionsgif } from "config/options.json" +import { color, devMessage, instructionsgif } from "config/options" import { Command } from "interfaces" export = { diff --git a/src/commands/kick.ts b/src/commands/kick.ts index 1fab864..e76d281 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js" -import { admin, helper } from "config/roles.json" -import { color, devMessage } from "config/options.json" +import { admin, helper } from "config/roles" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/ping.ts b/src/commands/ping.ts index c9b04b8..984c80e 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" export = { diff --git a/src/commands/pp.ts b/src/commands/pp.ts index 6084ccd..cb3fe29 100644 --- a/src/commands/pp.ts +++ b/src/commands/pp.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, User } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import { Command } from "interfaces" import env from "utils/Env" diff --git a/src/commands/remove.ts b/src/commands/remove.ts index 08d81ed..b7b76dc 100644 --- a/src/commands/remove.ts +++ b/src/commands/remove.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import waitinglistSchema from "schemas/waitinglistSchema" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/reqs.ts b/src/commands/reqs.ts index baa32c7..b72a0f3 100644 --- a/src/commands/reqs.ts +++ b/src/commands/reqs.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" -import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.json" +import { color, devMessage } from "config/options" +import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs" import { Command } from "interfaces" export = { diff --git a/src/commands/send.ts b/src/commands/send.ts index 90b2e2f..0abcff8 100644 --- a/src/commands/send.ts +++ b/src/commands/send.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" export = { diff --git a/src/commands/setnick.ts b/src/commands/setnick.ts index 3c2d9a4..3d56aa1 100644 --- a/src/commands/setnick.ts +++ b/src/commands/setnick.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/setup.ts b/src/commands/setup.ts index 6f9630b..813e4f0 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" export = { diff --git a/src/commands/slowmode.ts b/src/commands/slowmode.ts index f73128a..bc73e3a 100644 --- a/src/commands/slowmode.ts +++ b/src/commands/slowmode.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel, channelMention, userMention } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/snipe.ts b/src/commands/snipe.ts index a930062..df4d5f4 100644 --- a/src/commands/snipe.ts +++ b/src/commands/snipe.ts @@ -1,7 +1,7 @@ import { GuildMember, SlashCommandBuilder } from "discord.js" import snipeCacheSchema from "schemas/snipeCacheSchema" import { Command } from "interfaces" -import { color } from "config/options.json" +import { color } from "config/options" import { SnipeCache } from "typings" export = { diff --git a/src/commands/staff.ts b/src/commands/staff.ts index 28a8776..c7993fd 100644 --- a/src/commands/staff.ts +++ b/src/commands/staff.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import help from "./staff/help" import beast from "./staff/beast" diff --git a/src/commands/staff/beast.ts b/src/commands/staff/beast.ts index b09dec3..1d4efe5 100644 --- a/src/commands/staff/beast.ts +++ b/src/commands/staff/beast.ts @@ -1,5 +1,5 @@ -import { bwwins, beastbwfkdr, beastbwstars, beastswkdr, beastswstars, beastduelswins, duelswlr } from "config/reqs.json" -import { color, devMessage } from "config/options.json" +import { bwwins, beastbwfkdr, beastbwstars, beastswkdr, beastswstars, beastduelswins, duelswlr } from "config/reqs" +import { color, devMessage } from "config/options" import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" import { ChatInputCommandInteraction } from "discord.js" diff --git a/src/commands/staff/help.ts b/src/commands/staff/help.ts index 2d40101..ddcfd5e 100644 --- a/src/commands/staff/help.ts +++ b/src/commands/staff/help.ts @@ -1,5 +1,5 @@ import { ChatInputCommandInteraction } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { ExtendedClient as Client } from "utils/Client" export default async function help(interaction: ChatInputCommandInteraction, client: Client): Promise { diff --git a/src/commands/staff/prune.ts b/src/commands/staff/prune.ts index 12ffe8e..b8d1dc5 100644 --- a/src/commands/staff/prune.ts +++ b/src/commands/staff/prune.ts @@ -1,5 +1,5 @@ import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import env from "utils/Env" export default async function prune(interaction: ChatInputCommandInteraction): Promise { diff --git a/src/commands/staff/updatediscordroles.ts b/src/commands/staff/updatediscordroles.ts index df698ca..c3dd708 100644 --- a/src/commands/staff/updatediscordroles.ts +++ b/src/commands/staff/updatediscordroles.ts @@ -1,7 +1,7 @@ import verify from "schemas/verifySchema" -import { color, hypixelGuildID } from "config/options.json" +import { color, hypixelGuildID } from "config/options" import colorLog from "utils/functions/colors" -import { verifyTick } from "config/roles.json" +import { verifyTick } from "config/roles" import roleManage from "utils/functions/rolesmanage" import { ChatInputCommandInteraction, GuildMember } from "discord.js" import env from "utils/Env" diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 607cd9d..bac193b 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, ChatInputCommandInteraction, GuildMember } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import ms from "ms" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 47ae00f..ebb6477 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, User } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { Command } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/commands/update.ts b/src/commands/update.ts index 26b7f09..62e6f0e 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -1,7 +1,7 @@ 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 { color, hypixelGuildID, devMessage } from "config/options" import roleManage from "utils/functions/rolesmanage" import { Command } from "interfaces" diff --git a/src/commands/uuid.ts b/src/commands/uuid.ts index ab744ec..ca6239f 100644 --- a/src/commands/uuid.ts +++ b/src/commands/uuid.ts @@ -1,5 +1,5 @@ import { SlashCommandBuilder } from "discord.js" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel" import { Command } from "interfaces" diff --git a/src/commands/verify.ts b/src/commands/verify.ts index f0fb31e..a013b9d 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -1,6 +1,6 @@ import { GuildMember, SlashCommandBuilder } from "discord.js" import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" -import { color, hypixelGuildID, devMessage } from "config/options.json" +import { color, hypixelGuildID, devMessage } from "config/options" import mongoose from "mongoose" import roleManage from "utils/functions/rolesmanage" import { Command } from "interfaces" diff --git a/src/commands/whoami.ts b/src/commands/whoami.ts index b2d4efe..7466042 100644 --- a/src/commands/whoami.ts +++ b/src/commands/whoami.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, userMention } from "discord.js" import { Command } from "interfaces" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import verify from "schemas/verifySchema" import { getIGN, getHeadURL } from "utils/Hypixel" diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 571fb43..fcd36ff 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -1,6 +1,6 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" import { getIGN, getHeadURL } from "utils/Hypixel" -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import verify from "schemas/verifySchema" import { Command } from "interfaces" diff --git a/src/components/buttons/checkstats.ts b/src/components/buttons/checkstats.ts index 0bf17d3..8266f2e 100644 --- a/src/components/buttons/checkstats.ts +++ b/src/components/buttons/checkstats.ts @@ -1,6 +1,6 @@ -import { color, devMessage } from "config/options.json" +import { color, devMessage } from "config/options" import guildapp from "schemas/guildAppSchema" -import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs.json" +import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs" import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" import { Button } from "interfaces" diff --git a/src/components/buttons/guildapplicationaccept.ts b/src/components/buttons/guildapplicationaccept.ts index cc93bb9..b9d4aa4 100644 --- a/src/components/buttons/guildapplicationaccept.ts +++ b/src/components/buttons/guildapplicationaccept.ts @@ -1,10 +1,10 @@ import { ActionRowBuilder, ButtonStyle, ButtonBuilder, TextChannel } from "discord.js" -import { color, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options.json" +import { color, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options" 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 { waitingListRole } from "config/roles" import { Button } from "interfaces" import { getGuild } from "utils/Hypixel" diff --git a/src/components/buttons/guildapply.ts b/src/components/buttons/guildapply.ts index d61d8b2..1856cea 100644 --- a/src/components/buttons/guildapply.ts +++ b/src/components/buttons/guildapply.ts @@ -1,9 +1,9 @@ import { ButtonBuilder, ButtonStyle, ActionRowBuilder, EmbedBuilder, 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 { color } from "config/options" +import { largeM, smallM, ignM } from "config/limitmessages" +import { applicationsChannel } from "config/options" +import questions from "config/questions" +import { guildRole } from "config/roles" import { getUUID } from "utils/Hypixel" import mongoose from "mongoose" import guildapp from "schemas/guildAppSchema" diff --git a/src/components/buttons/guildinactivitylog.ts b/src/components/buttons/guildinactivitylog.ts index 95a7e0a..5f2ee2f 100644 --- a/src/components/buttons/guildinactivitylog.ts +++ b/src/components/buttons/guildinactivitylog.ts @@ -1,8 +1,8 @@ import { ButtonBuilder, ActionRowBuilder, ButtonStyle, EmbedBuilder, GuildMember, TextChannel } from "discord.js" -import { gm, manager, moderator, beast, 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 { gm, manager, moderator, beast, member, guildStaff, guildRole } from "config/roles" +import { ignM, smallM, largeM } from "config/limitmessages" +import { inactivity } from "config/questions" +import { color, inactivityLogChannel } from "config/options" import { Button } from "interfaces" import { getIGN } from "utils/Hypixel" const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole] diff --git a/src/components/buttons/staffapplicationaccept.ts b/src/components/buttons/staffapplicationaccept.ts index ce3380a..eb1ad8b 100644 --- a/src/components/buttons/staffapplicationaccept.ts +++ b/src/components/buttons/staffapplicationaccept.ts @@ -1,5 +1,5 @@ import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import staffapp from "schemas/staffAppSchema" import { Button } from "interfaces" diff --git a/src/components/buttons/staffapply.ts b/src/components/buttons/staffapply.ts index 3c8b3d3..9c5044a 100644 --- a/src/components/buttons/staffapply.ts +++ b/src/components/buttons/staffapply.ts @@ -1,8 +1,8 @@ import { ButtonBuilder, ButtonStyle, ActionRowBuilder, EmbedBuilder, 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" +import { largeM, ignM } from "config/limitmessages" +import questions from "config/questions" +import { guildRole, guildStaff } from "config/roles" import mongoose from "mongoose" import staffapp from "schemas/staffAppSchema" import settings from "schemas/settingsSchema" diff --git a/src/components/buttons/waitingListUpdate.ts b/src/components/buttons/waitingListUpdate.ts index b76a889..a646e8a 100644 --- a/src/components/buttons/waitingListUpdate.ts +++ b/src/components/buttons/waitingListUpdate.ts @@ -1,6 +1,6 @@ import waitinglist from "schemas/waitinglistSchema" import { getGuild } from "utils/Hypixel" -import { hypixelGuildID } from "config/options.json" +import { hypixelGuildID } from "config/options" import { Button } from "interfaces" export = { diff --git a/src/components/modals/denyreasonbox.ts b/src/components/modals/denyreasonbox.ts index a4eb0d0..5e26747 100644 --- a/src/components/modals/denyreasonbox.ts +++ b/src/components/modals/denyreasonbox.ts @@ -1,5 +1,5 @@ import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import guildapp from "schemas/guildAppSchema" import { Modal } from "interfaces" diff --git a/src/components/modals/staffdenyreasonbox.ts b/src/components/modals/staffdenyreasonbox.ts index c822a0b..21a4b53 100644 --- a/src/components/modals/staffdenyreasonbox.ts +++ b/src/components/modals/staffdenyreasonbox.ts @@ -1,5 +1,5 @@ import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import staffapp from "schemas/staffAppSchema" import { Modal } from "interfaces" diff --git a/src/components/modals/verifyModal.ts b/src/components/modals/verifyModal.ts index 0ed73db..71f1481 100644 --- a/src/components/modals/verifyModal.ts +++ b/src/components/modals/verifyModal.ts @@ -1,8 +1,8 @@ import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" -import { color, hypixelGuildID, devMessage } from "config/options.json" +import { color, hypixelGuildID, devMessage } from "config/options" import verify from "schemas/verifySchema" import mongoose from "mongoose" -import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles.json" +import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles" import { Modal } from "interfaces" import { GuildMember } from "discord.js" diff --git a/src/config/limitmessages.json b/src/config/limitmessages.json deleted file mode 100644 index 67a62be..0000000 --- a/src/config/limitmessages.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "largeM": "(256 characters max)", - "smallM": "(128 characters max)", - "ignM": "(16 characters max)" -} \ No newline at end of file diff --git a/src/config/limitmessages.ts b/src/config/limitmessages.ts new file mode 100644 index 0000000..c12d3c9 --- /dev/null +++ b/src/config/limitmessages.ts @@ -0,0 +1,6 @@ +const limitMessages = { + largeM: "(256 characters max)", + smallM: "(128 characters max)", + ignM: "(16 characters max)" +} +export = limitMessages diff --git a/src/config/options.json b/src/config/options.json deleted file mode 100644 index 21acc44..0000000 --- a/src/config/options.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "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&" -} diff --git a/src/config/options.ts b/src/config/options.ts new file mode 100644 index 0000000..58f53ab --- /dev/null +++ b/src/config/options.ts @@ -0,0 +1,21 @@ +const options = { + color: "#eeaadb", + embedColor: 0xeeaadb, + guildid: "481741000365178881", + devMessage: "Developed by taken.lua", + applicationsChannel: "776705352456470550", + staffApplicationsChannel: "1039258641393520700", + inactivityLogChannel: "829742524796239882", + staffOtherChannel: "1082036748558803104", + hypixelGuildID: "5a353a170cf2e529044f2935", + onlineLogChannel: "1101144489306886226", + botLogChannel: "1174403585149243472", + guildLogChannel: "1183733282534326322", + errorLogChannel: "1192476369850994788", + moderationLogChannel: "1193329771795447818", + devLogChannel: "1193688673632391280", + waitingListChannel: "1145773618291298384", + waitingListMessage: "1146027645415473193", + instructionsgif: "https://cdn.discordapp.com/attachments/838716950723952640/1188211176300089384/4DMu513uNxbM.gif?ex=6599b2e4&is=65873de4&hm=e727c7a39aacbc47d6a5453f4b5f792a45679983c30d662cd258a311381b6df0&" +} +export = options diff --git a/src/config/questions.json b/src/config/questions.json deleted file mode 100644 index ed0bddf..0000000 --- a/src/config/questions.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "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?" - } - ] -} diff --git a/src/config/questions.ts b/src/config/questions.ts new file mode 100644 index 0000000..d512a07 --- /dev/null +++ b/src/config/questions.ts @@ -0,0 +1,77 @@ +const question = { + 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?" + } + ] +} +export = question diff --git a/src/config/reqs.json b/src/config/reqs.json deleted file mode 100644 index 5c67450..0000000 --- a/src/config/reqs.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "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 -} diff --git a/src/config/reqs.ts b/src/config/reqs.ts new file mode 100644 index 0000000..539f55e --- /dev/null +++ b/src/config/reqs.ts @@ -0,0 +1,15 @@ +const reqs = { + bwstars: 200, + bwfkdr: 4, + bwwins: 1500, + swstars: 15, + swkdr: 1, + duelswins: 6000, + duelswlr: 3, + beastbwstars: 500, + beastbwfkdr: 7, + beastswstars: 20, + beastswkdr: 2.5, + beastduelswins: 12000 +} +export = reqs diff --git a/src/config/roles.json b/src/config/roles.json deleted file mode 100644 index 1ed3f62..0000000 --- a/src/config/roles.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "gm": "815893218246787080", - "manager": "815880752683679824", - "moderator": "815880910019887134", - "elite": "1137654165884129310", - "beast": "815880942345519104", - "member": "815880984301404190", - "guildStaff": "1175860041652379718", - "guildRole": "1043224015722000514", - "waitingListRole": "1092543315053908120", - "defaultMember": "722386801930797056", - "admin": "528549814846095360", - "helper": "592371991294771226", - "muted": "594355088932339732", - "countingBanned": "1192183486128341072", - "verifyTick": "1201624332674273290" -} diff --git a/src/config/roles.ts b/src/config/roles.ts new file mode 100644 index 0000000..6048de6 --- /dev/null +++ b/src/config/roles.ts @@ -0,0 +1,18 @@ +const roles = { + gm: "815893218246787080", + manager: "815880752683679824", + moderator: "815880910019887134", + elite: "1137654165884129310", + beast: "815880942345519104", + member: "815880984301404190", + guildStaff: "1175860041652379718", + guildRole: "1043224015722000514", + waitingListRole: "1092543315053908120", + defaultMember: "722386801930797056", + admin: "528549814846095360", + helper: "592371991294771226", + muted: "594355088932339732", + countingBanned: "1192183486128341072", + verifyTick: "1201624332674273290" +} +export = roles diff --git a/src/config/statuses.json b/src/config/statuses.json deleted file mode 100644 index 1479fd7..0000000 --- a/src/config/statuses.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { "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 } -] diff --git a/src/config/statuses.ts b/src/config/statuses.ts new file mode 100644 index 0000000..713b171 --- /dev/null +++ b/src/config/statuses.ts @@ -0,0 +1,11 @@ +const statuses = [ + { 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 } +] +export = statuses diff --git a/src/events/cron/weeklyGexp.ts b/src/events/cron/weeklyGexp.ts index bf3c5fd..677f3ae 100644 --- a/src/events/cron/weeklyGexp.ts +++ b/src/events/cron/weeklyGexp.ts @@ -1,4 +1,4 @@ -import { hypixelGuildID, guildLogChannel, color, devMessage } from "config/options.json" +import { hypixelGuildID, guildLogChannel, color, devMessage } from "config/options" import colorLog from "utils/functions/colors" import { getGuild, getIGN } from "utils/Hypixel" import { Cron, GuildData } from "interfaces" diff --git a/src/events/server/guildMemberAdd/logNewJoins.ts b/src/events/server/guildMemberAdd/logNewJoins.ts index f6bd718..9c064cb 100644 --- a/src/events/server/guildMemberAdd/logNewJoins.ts +++ b/src/events/server/guildMemberAdd/logNewJoins.ts @@ -1,5 +1,5 @@ import { GuildMember, userMention } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import { Event } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/events/server/ready/sendOnlineMessage.ts b/src/events/server/ready/sendOnlineMessage.ts index 22ee172..cfa6b57 100644 --- a/src/events/server/ready/sendOnlineMessage.ts +++ b/src/events/server/ready/sendOnlineMessage.ts @@ -1,6 +1,6 @@ import logToChannel from "utils/functions/logtochannel" import { Event } from "interfaces" -import { color } from "config/options.json" +import { color } from "config/options" export = { name: "sendonlinemessage", diff --git a/src/events/server/ready/status.ts b/src/events/server/ready/status.ts index 7deeb12..bb24956 100644 --- a/src/events/server/ready/status.ts +++ b/src/events/server/ready/status.ts @@ -1,4 +1,4 @@ -import statuses from "config/statuses.json" +import statuses from "config/statuses" import { Event } from "interfaces" import { ExtendedClient as Client } from "utils/Client" diff --git a/src/events/server/voiceStateUpdate/vcJoinLeave.ts b/src/events/server/voiceStateUpdate/vcJoinLeave.ts index 40d65cd..a4b0faf 100644 --- a/src/events/server/voiceStateUpdate/vcJoinLeave.ts +++ b/src/events/server/voiceStateUpdate/vcJoinLeave.ts @@ -1,5 +1,5 @@ import { userMention, channelMention, VoiceState } from "discord.js" -import { color } from "config/options.json" +import { color } from "config/options" import { Event } from "interfaces" import logToChannel from "utils/functions/logtochannel" diff --git a/src/utils/Events/autocomplete.ts b/src/utils/Events/autocomplete.ts index 6ad7463..941e63e 100644 --- a/src/utils/Events/autocomplete.ts +++ b/src/utils/Events/autocomplete.ts @@ -1,5 +1,5 @@ import { ExtendedClient as Client } from "utils/Client" -import { color } from "config/options.json" +import { color } from "config/options" import { Autocomplete } from "interfaces" import { Events } from "discord.js" import colorLog from "utils/functions/colors" diff --git a/src/utils/Events/button.ts b/src/utils/Events/button.ts index 3c34a8e..003d032 100644 --- a/src/utils/Events/button.ts +++ b/src/utils/Events/button.ts @@ -1,6 +1,6 @@ import { ExtendedClient as Client } from "utils/Client" import colorLog from "utils/functions/colors" -import { color } from "config/options.json" +import { color } from "config/options" import { Button } from "interfaces" import { Events } from "discord.js" import path from "path" diff --git a/src/utils/Events/command.ts b/src/utils/Events/command.ts index e44b0a0..3ad03cc 100644 --- a/src/utils/Events/command.ts +++ b/src/utils/Events/command.ts @@ -1,6 +1,6 @@ import { ExtendedClient as Client } from "utils/Client" import colorLog from "utils/functions/colors" -import { color } from "config/options.json" +import { color } from "config/options" import { Command } from "interfaces" import { Events } from "discord.js" import path from "path" diff --git a/src/utils/Events/contextmenu.ts b/src/utils/Events/contextmenu.ts index 405d3de..5e338f0 100644 --- a/src/utils/Events/contextmenu.ts +++ b/src/utils/Events/contextmenu.ts @@ -1,7 +1,7 @@ import { ExtendedClient as Client } from "utils/Client" import colorLog from "utils/functions/colors" import { ContextMenu } from "interfaces" -import { color } from "config/options.json" +import { color } from "config/options" import { Events } from "discord.js" import path from "path" import fs from "fs" diff --git a/src/utils/Events/modal.ts b/src/utils/Events/modal.ts index 7e3c61c..318cf07 100644 --- a/src/utils/Events/modal.ts +++ b/src/utils/Events/modal.ts @@ -1,6 +1,6 @@ import { ExtendedClient as Client } from "utils/Client" import colorLog from "utils/functions/colors" -import { color } from "config/options.json" +import { color } from "config/options" import { Modal } from "interfaces" import { Events } from "discord.js" import path from "path" diff --git a/src/utils/functions/logtochannel.ts b/src/utils/functions/logtochannel.ts index a86f37d..47bafec 100644 --- a/src/utils/functions/logtochannel.ts +++ b/src/utils/functions/logtochannel.ts @@ -6,7 +6,7 @@ import { errorLogChannel, moderationLogChannel, devLogChannel -} from "config/options.json" +} from "config/options" import { Guild, MessageCreateOptions, TextChannel } from "discord.js" import { client } from "utils/Illegitimate" diff --git a/src/utils/functions/rolesmanage.ts b/src/utils/functions/rolesmanage.ts index 8d4029e..15fb4bf 100644 --- a/src/utils/functions/rolesmanage.ts +++ b/src/utils/functions/rolesmanage.ts @@ -9,7 +9,7 @@ import { guildRole, defaultMember, verifyTick -} from "config/roles.json" +} from "config/roles" const roles = [ gm, manager,