Updated configs to ts files
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -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<void> {
|
||||
|
||||
@@ -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<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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<void> {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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<void> {
|
||||
|
||||
@@ -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<void> {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user