Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!225
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits, userMention } from "discord.js"
|
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits, userMention } from "discord.js"
|
||||||
import { ContextMenu } from "interfaces"
|
import { IContextMenu } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "congratsmessage",
|
name: "congratsmessage",
|
||||||
@@ -37,4 +37,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as ContextMenu
|
} as IContextMenu
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits } from "discord.js"
|
import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits } from "discord.js"
|
||||||
import { ContextMenu } from "interfaces"
|
import { IContextMenu } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "resetnick",
|
name: "resetnick",
|
||||||
@@ -48,4 +48,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as ContextMenu
|
} as IContextMenu
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||||
import { embedColor, devMessage, hypixelGuildID } from "config/options"
|
import { embedColor, devMessage, hypixelGuildID } from "config/options"
|
||||||
import { ContextMenu } from "interfaces"
|
import { IContextMenu } 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"
|
||||||
@@ -154,4 +154,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as ContextMenu
|
} as IContextMenu
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import search from "./anime/search"
|
import search from "./anime/search"
|
||||||
import { devMessage, embedColor } from "config/options"
|
import { devMessage, embedColor } from "config/options"
|
||||||
|
|
||||||
@@ -45,4 +45,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js"
|
||||||
import { admin, helper } from "config/roles"
|
import { admin, helper } from "config/roles"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -136,4 +136,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import os from "os"
|
import os from "os"
|
||||||
import { execSync } from "child_process"
|
import { execSync } from "child_process"
|
||||||
@@ -74,4 +74,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { SlashCommandBuilder } from "discord.js"
|
|||||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "check",
|
name: "check",
|
||||||
@@ -234,4 +234,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, TextChannel, channelMention, userMention } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, TextChannel, channelMention, userMention } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -77,4 +77,4 @@ export = {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
|||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import settings from "schemas/settingsSchema"
|
import settings from "schemas/settingsSchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "config",
|
name: "config",
|
||||||
@@ -65,4 +65,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import ban from "./counting/ban"
|
import ban from "./counting/ban"
|
||||||
import unban from "./counting/unban"
|
import unban from "./counting/unban"
|
||||||
|
|
||||||
@@ -63,4 +63,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } 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"
|
||||||
@@ -82,4 +82,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } fr
|
|||||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
|
||||||
import { hypixelGuildID, embedColor, devMessage } from "config/options"
|
import { hypixelGuildID, embedColor, devMessage } from "config/options"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
import { waitingListRole } from "config/roles"
|
import { waitingListRole } from "config/roles"
|
||||||
|
|
||||||
@@ -160,4 +160,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
|||||||
import verify from "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 { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -204,4 +204,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } 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"
|
||||||
@@ -106,4 +106,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
|
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
import { GuildData } from "interfaces"
|
import { IGuildData } from "interfaces"
|
||||||
|
|
||||||
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
|
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
|
|
||||||
const query = interaction.options.getString("query")!
|
const query = interaction.options.getString("query")!
|
||||||
const type = interaction.options.getString("type") || "ign"
|
const type = interaction.options.getString("type") || "ign"
|
||||||
let guild: GuildData | null
|
let guild: IGuildData | null
|
||||||
|
|
||||||
if (type === "ign") {
|
if (type === "ign") {
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
|
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
||||||
import { GuildData } from "interfaces"
|
import { IGuildData } from "interfaces"
|
||||||
import { redis } from "utils/Illegitimate"
|
import { redis } from "utils/Illegitimate"
|
||||||
|
|
||||||
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||||
@@ -10,7 +10,7 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
|
|||||||
const query = interaction.options.getString("query")!
|
const query = interaction.options.getString("query")!
|
||||||
const type = interaction.options.getString("type") || "ign"
|
const type = interaction.options.getString("type") || "ign"
|
||||||
let amount = interaction.options.getNumber("amount") || 10
|
let amount = interaction.options.getNumber("amount") || 10
|
||||||
let guild: GuildData | null
|
let guild: IGuildData | null
|
||||||
|
|
||||||
if (interaction.channel!.type === ChannelType.DM) {
|
if (interaction.channel!.type === ChannelType.DM) {
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "help",
|
name: "help",
|
||||||
@@ -71,4 +71,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { embedColor, devMessage, instructionsgif } from "config/options"
|
import { embedColor, devMessage, instructionsgif } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "instructions",
|
name: "instructions",
|
||||||
@@ -36,4 +36,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||||
import { admin, helper } from "config/roles"
|
import { admin, helper } from "config/roles"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -109,4 +109,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import play from "./music/play"
|
import play from "./music/play"
|
||||||
import leave from "./music/leave"
|
import leave from "./music/leave"
|
||||||
import queue from "./music/queue"
|
import queue from "./music/queue"
|
||||||
@@ -114,4 +114,4 @@ export = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "ping",
|
name: "ping",
|
||||||
@@ -27,4 +27,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, User } from "discord.js"
|
import { SlashCommandBuilder, User } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -38,4 +38,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import waitinglistSchema from "schemas/waitinglistSchema"
|
import waitinglistSchema from "schemas/waitinglistSchema"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -85,4 +85,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "reqs",
|
name: "reqs",
|
||||||
@@ -48,4 +48,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "send",
|
name: "send",
|
||||||
@@ -58,4 +58,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -77,4 +77,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "setup",
|
name: "setup",
|
||||||
@@ -153,4 +153,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel, channelMention, userMention } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel, channelMention, userMention } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -83,4 +83,4 @@ export = {
|
|||||||
})
|
})
|
||||||
await channel.setRateLimitPerUser(seconds)
|
await channel.setRateLimitPerUser(seconds)
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
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"
|
import { ICommand } from "interfaces"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { SnipeCache } from "typings"
|
import { SnipeCache } from "typings"
|
||||||
|
|
||||||
@@ -71,4 +71,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import help from "./staff/help"
|
import help from "./staff/help"
|
||||||
import beast from "./staff/beast"
|
import beast from "./staff/beast"
|
||||||
import updateAll from "./staff/updateall"
|
import updateAll from "./staff/updateall"
|
||||||
@@ -90,4 +90,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { embedColor, hypixelGuildID } from "config/options"
|
import { embedColor, hypixelGuildID } from "config/options"
|
||||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { GuildData } from "interfaces"
|
import { IGuildData } from "interfaces"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
import { getGuild } from "utils/Hypixel"
|
import { getGuild } from "utils/Hypixel"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
@@ -30,7 +30,7 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
const guildData = (await getGuild(hypixelGuildID, "id")) as GuildData
|
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData
|
||||||
|
|
||||||
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)
|
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ 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 { IGuildData } from "interfaces"
|
||||||
|
|
||||||
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
|
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||||
await interaction.deferReply()
|
await interaction.deferReply()
|
||||||
@@ -32,7 +32,7 @@ export default async function updateAll(interaction: ChatInputCommandInteraction
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
|
|
||||||
const guildData = (await getGuild(hypixelGuildID, "id")) as GuildData
|
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData
|
||||||
|
|
||||||
const hypixelGuildMembers = guildData.members.map(gmember => {
|
const hypixelGuildMembers = guildData.members.map(gmember => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, ChatInputCommandInteraction, GuildMember } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import ms from "ms"
|
import ms from "ms"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
@@ -161,4 +161,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { SlashCommandBuilder, PermissionFlagsBits, userMention, User } from "discord.js"
|
import { SlashCommandBuilder, PermissionFlagsBits, userMention, User } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -101,4 +101,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { getGuild, getIGN, getHeadURL } from "utils/Hypixel"
|
|||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||||
import roleManage from "utils/functions/rolesmanage"
|
import roleManage from "utils/functions/rolesmanage"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import { waitingListRole } from "config/roles"
|
import { waitingListRole } from "config/roles"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -143,4 +143,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { SlashCommandBuilder } from "discord.js"
|
import { SlashCommandBuilder } from "discord.js"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel"
|
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "uuid",
|
name: "uuid",
|
||||||
@@ -58,4 +58,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
|||||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||||
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 { ICommand } from "interfaces"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { PlayerData } from "interfaces"
|
import { IPlayerData } from "interfaces"
|
||||||
import { GuildData } from "interfaces"
|
import { IGuildData } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "verify",
|
name: "verify",
|
||||||
@@ -75,7 +75,7 @@ export = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const head = await getHeadURL(ign)
|
const head = await getHeadURL(ign)
|
||||||
const player = (await getPlayer(uuid)) as PlayerData
|
const player = (await getPlayer(uuid)) as IPlayerData
|
||||||
if (!player) {
|
if (!player) {
|
||||||
interaction.editReply({
|
interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
@@ -130,7 +130,7 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
const guild = (await getGuild(uuid)) as GuildData | null
|
const guild = (await getGuild(uuid)) as IGuildData | null
|
||||||
let guildID: string | null
|
let guildID: string | null
|
||||||
if (!guild) {
|
if (!guild) {
|
||||||
guildID = null
|
guildID = null
|
||||||
@@ -198,4 +198,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { SlashCommandBuilder, userMention } from "discord.js"
|
import { SlashCommandBuilder, userMention } from "discord.js"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||||
@@ -50,4 +50,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.j
|
|||||||
import { getIGN, getHeadURL } from "utils/Hypixel"
|
import { getIGN, getHeadURL } from "utils/Hypixel"
|
||||||
import { embedColor, devMessage } from "config/options"
|
import { embedColor, devMessage } from "config/options"
|
||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "whois",
|
name: "whois",
|
||||||
@@ -51,4 +51,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Command
|
} as ICommand
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { QueryType, useMainPlayer } from "discord-player"
|
import { QueryType, useMainPlayer } from "discord-player"
|
||||||
import { Autocomplete } from "interfaces"
|
import { IAutocomplete } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "music",
|
name: "music",
|
||||||
@@ -29,4 +29,4 @@ export = {
|
|||||||
|
|
||||||
await interaction.respond(results.slice(0, 25)).catch()
|
await interaction.respond(results.slice(0, 25)).catch()
|
||||||
}
|
}
|
||||||
} as Autocomplete
|
} as IAutocomplete
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Autocomplete } from "interfaces"
|
import { IAutocomplete } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "unban",
|
name: "unban",
|
||||||
@@ -28,4 +28,4 @@ export = {
|
|||||||
console.log(err)
|
console.log(err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Autocomplete
|
} as IAutocomplete
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { embedColor, devMessage } from "config/options"
|
|||||||
import guildapp from "schemas/guildAppSchema"
|
import guildapp from "schemas/guildAppSchema"
|
||||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "checkstats",
|
name: "checkstats",
|
||||||
@@ -176,4 +176,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ 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"
|
import { waitingListRole } from "config/roles"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
import { getGuild } from "utils/Hypixel"
|
import { getGuild } from "utils/Hypixel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -136,4 +136,4 @@ export = {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "guildapplicationdeny",
|
name: "guildapplicationdeny",
|
||||||
@@ -21,4 +21,4 @@ export = {
|
|||||||
)
|
)
|
||||||
await interaction.showModal(modal)
|
await interaction.showModal(modal)
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { guildRole } from "config/roles"
|
|||||||
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 { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "guildapply",
|
name: "guildapply",
|
||||||
@@ -507,4 +507,4 @@ export = {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "co
|
|||||||
import { ignM, smallM, largeM } from "config/limitmessages"
|
import { ignM, smallM, largeM } from "config/limitmessages"
|
||||||
import { inactivity } from "config/questions"
|
import { inactivity } from "config/questions"
|
||||||
import { embedColor, inactivityLogChannel } from "config/options"
|
import { embedColor, inactivityLogChannel } from "config/options"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
import { getIGN } from "utils/Hypixel"
|
import { getIGN } from "utils/Hypixel"
|
||||||
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
|
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
|
||||||
|
|
||||||
@@ -281,4 +281,4 @@ export = {
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "inactiveapplicationaccept",
|
name: "inactiveapplicationaccept",
|
||||||
@@ -10,4 +10,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "inactiveapplicationdeny",
|
name: "inactiveapplicationdeny",
|
||||||
@@ -10,4 +10,4 @@ export = {
|
|||||||
ephemeral: true
|
ephemeral: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import staffapp from "schemas/staffAppSchema"
|
import staffapp from "schemas/staffAppSchema"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffapplicationaccept",
|
name: "staffapplicationaccept",
|
||||||
@@ -60,4 +60,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffapplicationdeny",
|
name: "staffapplicationdeny",
|
||||||
@@ -15,10 +15,10 @@ export = {
|
|||||||
.setLabel("Deny Reason")
|
.setLabel("Deny Reason")
|
||||||
.setCustomId("staffdenyreason")
|
.setCustomId("staffdenyreason")
|
||||||
.setStyle(TextInputStyle.Paragraph)
|
.setStyle(TextInputStyle.Paragraph)
|
||||||
.setPlaceholder( "Enter a reason for denying the application")
|
.setPlaceholder("Enter a reason for denying the application")
|
||||||
.setRequired(false)
|
.setRequired(false)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
await interaction.showModal(modal)
|
await interaction.showModal(modal)
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ 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 { IButton } from "interfaces"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -441,4 +441,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "verify",
|
name: "verify",
|
||||||
@@ -23,4 +23,4 @@ export = {
|
|||||||
)
|
)
|
||||||
await interaction.showModal(modal)
|
await interaction.showModal(modal)
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -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"
|
import { hypixelGuildID } from "config/options"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "waitinglistupdate",
|
name: "waitinglistupdate",
|
||||||
@@ -53,4 +53,4 @@ export = {
|
|||||||
|
|
||||||
await interaction.editReply("Updated the waiting list")
|
await interaction.editReply("Updated the waiting list")
|
||||||
}
|
}
|
||||||
} as Button
|
} as IButton
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
|
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import guildapp from "schemas/guildAppSchema"
|
import guildapp from "schemas/guildAppSchema"
|
||||||
import { Modal } from "interfaces"
|
import { IModal } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "denyreasonbox",
|
name: "denyreasonbox",
|
||||||
@@ -84,4 +84,4 @@ export = {
|
|||||||
embeds: responseEmbeds
|
embeds: responseEmbeds
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Modal
|
} as IModal
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import staffapp from "schemas/staffAppSchema"
|
import staffapp from "schemas/staffAppSchema"
|
||||||
import { Modal } from "interfaces"
|
import { IModal } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "staffdenyreasonbox",
|
name: "staffdenyreasonbox",
|
||||||
@@ -60,4 +60,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Modal
|
} as IModal
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
|||||||
import verify from "schemas/verifySchema"
|
import verify from "schemas/verifySchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles"
|
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles"
|
||||||
import { Modal } from "interfaces"
|
import { IModal } from "interfaces"
|
||||||
import { GuildMember } from "discord.js"
|
import { GuildMember } from "discord.js"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -145,4 +145,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Modal
|
} as IModal
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
|
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
|
||||||
import color from "utils/functions/colors"
|
import color from "utils/functions/colors"
|
||||||
import { getGuild, getIGN } from "utils/Hypixel"
|
import { getGuild, getIGN } from "utils/Hypixel"
|
||||||
import { Cron, GuildData } from "interfaces"
|
import { ICron, IGuildData } from "interfaces"
|
||||||
import { client } from "utils/Illegitimate"
|
import { client } from "utils/Illegitimate"
|
||||||
import { TextChannel } from "discord.js"
|
import { TextChannel } from "discord.js"
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@ async function guildWeekly() {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
|
|
||||||
const guild = (await getGuild(hypixelGuildID, "id")) as GuildData
|
const guild = (await getGuild(hypixelGuildID, "id")) as IGuildData
|
||||||
const guildMembersList: string[] = []
|
const guildMembersList: string[] = []
|
||||||
const topWeeklyMembers: { name: string; value: string; inline: boolean }[] = []
|
const topWeeklyMembers: { name: string; value: string; inline: boolean }[] = []
|
||||||
|
|
||||||
@@ -99,4 +99,4 @@ export = {
|
|||||||
onComplete: null,
|
onComplete: null,
|
||||||
start: true,
|
start: true,
|
||||||
timeZone: "Europe/Zagreb"
|
timeZone: "Europe/Zagreb"
|
||||||
} as Cron
|
} as ICron
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { GuildMember, userMention } from "discord.js"
|
import { GuildMember, userMention } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -27,4 +27,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -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 { IEvent } from "interfaces"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
name: "logBtnsCmds",
|
name: "logBtnsCmds",
|
||||||
@@ -51,4 +51,4 @@ export = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Message } from "discord.js"
|
import { Message } from "discord.js"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -31,4 +31,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import { Message } from "discord.js"
|
import { Message } from "discord.js"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -11,4 +11,4 @@ export = {
|
|||||||
message.react("Woot:734345936347725885")
|
message.react("Woot:734345936347725885")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ChannelType, Message } from "discord.js"
|
import { ChannelType, Message } from "discord.js"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import snipeCacheSchema from "schemas/snipeCacheSchema"
|
import snipeCacheSchema from "schemas/snipeCacheSchema"
|
||||||
import mongoose from "mongoose"
|
import mongoose from "mongoose"
|
||||||
import { SnipeCache } from "typings"
|
import { SnipeCache } from "typings"
|
||||||
@@ -32,4 +32,4 @@ export = {
|
|||||||
|
|
||||||
await snipeCache.save()
|
await snipeCache.save()
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Event } from "interfaces"
|
import { IEvent } 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"
|
||||||
|
|
||||||
@@ -10,4 +10,4 @@ export = {
|
|||||||
execute(client: Client) {
|
execute(client: Client) {
|
||||||
console.log(color("Logged in as " + client.user!.tag + "!", "green"))
|
console.log(color("Logged in as " + client.user!.tag + "!", "green"))
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -17,4 +17,4 @@ export = {
|
|||||||
}]
|
}]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import statuses from "config/statuses"
|
import statuses from "config/statuses"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import { ExtendedClient as Client } from "utils/Client"
|
import { ExtendedClient as Client } from "utils/Client"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -27,4 +27,4 @@ export = {
|
|||||||
|
|
||||||
user.setStatus("dnd")
|
user.setStatus("dnd")
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { userMention, channelMention, VoiceState } from "discord.js"
|
import { userMention, channelMention, VoiceState } from "discord.js"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import logToChannel from "utils/functions/logtochannel"
|
import logToChannel from "utils/functions/logtochannel"
|
||||||
|
|
||||||
export = {
|
export = {
|
||||||
@@ -58,4 +58,4 @@ export = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as Event
|
} as IEvent
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import { AutocompleteInteraction } from "discord.js"
|
import { AutocompleteInteraction } from "discord.js"
|
||||||
|
|
||||||
export default interface Autocomplete {
|
export default interface IAutocomplete {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
execute: (interacion: AutocompleteInteraction) => Promise<void>
|
execute: (interacion: AutocompleteInteraction) => Promise<void>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import { ButtonInteraction } from "discord.js"
|
import { ButtonInteraction } from "discord.js"
|
||||||
|
|
||||||
export default interface Button {
|
export default interface IButton {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
execute: (interaction: ButtonInteraction) => Promise<void>
|
execute: (interaction: ButtonInteraction) => Promise<void>
|
||||||
@@ -2,12 +2,11 @@
|
|||||||
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 ICommand {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
dev?: boolean
|
dev?: boolean
|
||||||
public: boolean
|
public: boolean
|
||||||
disabled?: boolean
|
|
||||||
subcommands?: boolean
|
subcommands?: boolean
|
||||||
data: SlashCommandBuilder
|
data: SlashCommandBuilder
|
||||||
execute: (interaction: ChatInputCommandInteraction, client: Client) => Promise<void>
|
execute: (interaction: ChatInputCommandInteraction, client: Client) => Promise<void>
|
||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
ContextMenuCommandBuilder
|
ContextMenuCommandBuilder
|
||||||
} from "discord.js"
|
} from "discord.js"
|
||||||
|
|
||||||
export default interface ContextMenu {
|
export default interface IContextMenu {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
dev?: boolean
|
dev?: boolean
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { TimeZones } from "."
|
import { TimeZones } from "typings"
|
||||||
|
|
||||||
interface TimeFormat {
|
interface TimeFormat {
|
||||||
seconds: "*" | number
|
seconds: "*" | number
|
||||||
@@ -9,10 +9,10 @@ interface TimeFormat {
|
|||||||
dayOfWeek: "*" | number
|
dayOfWeek: "*" | number
|
||||||
}
|
}
|
||||||
|
|
||||||
export default interface Cron {
|
export default interface ICron {
|
||||||
time: TimeFormat
|
time: TimeFormat
|
||||||
execute: () => void
|
execute: () => void
|
||||||
onComplete?: null | undefined
|
onComplete?: null | undefined
|
||||||
start?: boolean | null | undefined
|
start?: boolean | null | undefined
|
||||||
timeZone: keyof TimeZones
|
timeZone: TimeZones
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,7 @@ interface DevEnv {
|
|||||||
guildid: string | undefined
|
guildid: string | undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export default interface Env {
|
export default interface IEnv {
|
||||||
prod: ProdEnv
|
prod: ProdEnv
|
||||||
dev: DevEnv
|
dev: DevEnv
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import { ClientEvents } from "discord.js"
|
import { ClientEvents } from "discord.js"
|
||||||
|
|
||||||
export default interface Event {
|
export default interface IEvent {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
event: keyof ClientEvents
|
event: keyof ClientEvents
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
export interface Guild {
|
export interface IGuild {
|
||||||
data: {
|
data: {
|
||||||
success: boolean
|
success: boolean
|
||||||
guild: GuildData
|
guild: IGuildData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildData {
|
export interface IGuildData {
|
||||||
_id: string
|
_id: string
|
||||||
name: string
|
name: string
|
||||||
coins?: number
|
coins?: number
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-disable no-unused-vars */
|
/* eslint-disable no-unused-vars */
|
||||||
import { ModalSubmitInteraction } from "discord.js"
|
import { ModalSubmitInteraction } from "discord.js"
|
||||||
|
|
||||||
export default interface Modal {
|
export default interface IModal {
|
||||||
name: string
|
name: string
|
||||||
description: string
|
description: string
|
||||||
execute: (interaction: ModalSubmitInteraction) => Promise<void>
|
execute: (interaction: ModalSubmitInteraction) => Promise<void>
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
export interface Player {
|
export interface IPlayer {
|
||||||
data: {
|
data: {
|
||||||
success: boolean
|
success: boolean
|
||||||
player: PlayerData
|
player: IPlayerData
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PlayerData {
|
export interface IPlayerData {
|
||||||
_id?: string
|
_id?: string
|
||||||
uuid?: string
|
uuid?: string
|
||||||
firstLogin?: number
|
firstLogin?: number
|
||||||
@@ -8910,7 +8910,7 @@ export interface Active {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives {}
|
export interface Objectives { }
|
||||||
|
|
||||||
export interface DuelsKiller {
|
export interface DuelsKiller {
|
||||||
completions?: Completion2[]
|
completions?: Completion2[]
|
||||||
@@ -8926,7 +8926,7 @@ export interface Active2 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives2 {}
|
export interface Objectives2 { }
|
||||||
|
|
||||||
export interface SkywarsArcadeWin {
|
export interface SkywarsArcadeWin {
|
||||||
completions?: Completion3[]
|
completions?: Completion3[]
|
||||||
@@ -8942,7 +8942,7 @@ export interface Active3 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives3 {}
|
export interface Objectives3 { }
|
||||||
|
|
||||||
export interface PrototypePitDailyKills {
|
export interface PrototypePitDailyKills {
|
||||||
completions?: Completion4[]
|
completions?: Completion4[]
|
||||||
@@ -9020,7 +9020,7 @@ export interface Active7 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives7 {}
|
export interface Objectives7 { }
|
||||||
|
|
||||||
export interface DuelsWeeklyWins {
|
export interface DuelsWeeklyWins {
|
||||||
completions?: Completion9[]
|
completions?: Completion9[]
|
||||||
@@ -9081,7 +9081,7 @@ export interface Active9 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives9 {}
|
export interface Objectives9 { }
|
||||||
|
|
||||||
export interface SkywarsWeeklyFreeLootChest {
|
export interface SkywarsWeeklyFreeLootChest {
|
||||||
completions?: Completion14[]
|
completions?: Completion14[]
|
||||||
@@ -9115,7 +9115,7 @@ export interface Active11 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives11 {}
|
export interface Objectives11 { }
|
||||||
|
|
||||||
export interface SkywarsWeeklyKills {
|
export interface SkywarsWeeklyKills {
|
||||||
completions?: Completion16[]
|
completions?: Completion16[]
|
||||||
@@ -9149,7 +9149,7 @@ export interface Active13 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives13 {}
|
export interface Objectives13 { }
|
||||||
|
|
||||||
export interface SkywarsSoloWin {
|
export interface SkywarsSoloWin {
|
||||||
completions?: Completion18[]
|
completions?: Completion18[]
|
||||||
@@ -9165,7 +9165,7 @@ export interface Active14 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives14 {}
|
export interface Objectives14 { }
|
||||||
|
|
||||||
export interface SkywarsWeeklyArcadeWinAll {
|
export interface SkywarsWeeklyArcadeWinAll {
|
||||||
active?: Active15
|
active?: Active15
|
||||||
@@ -9231,7 +9231,7 @@ export interface Active17 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives17 {}
|
export interface Objectives17 { }
|
||||||
|
|
||||||
export interface WallsWeekly {
|
export interface WallsWeekly {
|
||||||
active?: Active18
|
active?: Active18
|
||||||
@@ -9261,7 +9261,7 @@ export interface Active19 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives19 {}
|
export interface Objectives19 { }
|
||||||
|
|
||||||
export interface QuakeDailyWin {
|
export interface QuakeDailyWin {
|
||||||
completions?: Completion24[]
|
completions?: Completion24[]
|
||||||
@@ -9277,7 +9277,7 @@ export interface Active20 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives20 {}
|
export interface Objectives20 { }
|
||||||
|
|
||||||
export interface QuakeDailyKill {
|
export interface QuakeDailyKill {
|
||||||
completions?: Completion25[]
|
completions?: Completion25[]
|
||||||
@@ -9293,7 +9293,7 @@ export interface Active21 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives21 {}
|
export interface Objectives21 { }
|
||||||
|
|
||||||
export interface PaintballExpert {
|
export interface PaintballExpert {
|
||||||
active?: Active22
|
active?: Active22
|
||||||
@@ -9318,7 +9318,7 @@ export interface Active23 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives23 {}
|
export interface Objectives23 { }
|
||||||
|
|
||||||
export interface ArenaWeeklyPlay {
|
export interface ArenaWeeklyPlay {
|
||||||
active?: Active24
|
active?: Active24
|
||||||
@@ -9387,7 +9387,7 @@ export interface Active28 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives28 {}
|
export interface Objectives28 { }
|
||||||
|
|
||||||
export interface VampirezDailyPlay {
|
export interface VampirezDailyPlay {
|
||||||
completions?: Completion27[]
|
completions?: Completion27[]
|
||||||
@@ -9470,7 +9470,7 @@ export interface Active33 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives33 {}
|
export interface Objectives33 { }
|
||||||
|
|
||||||
export interface GingerbreadBlingBling {
|
export interface GingerbreadBlingBling {
|
||||||
completions?: Completion30[]
|
completions?: Completion30[]
|
||||||
@@ -9486,7 +9486,7 @@ export interface Active34 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives34 {}
|
export interface Objectives34 { }
|
||||||
|
|
||||||
export interface GingerbreadMastery {
|
export interface GingerbreadMastery {
|
||||||
active?: Active35
|
active?: Active35
|
||||||
@@ -9564,7 +9564,7 @@ export interface Active39 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives39 {}
|
export interface Objectives39 { }
|
||||||
|
|
||||||
export interface VampirezWeeklyHumanKill {
|
export interface VampirezWeeklyHumanKill {
|
||||||
active?: Active40
|
active?: Active40
|
||||||
@@ -9588,7 +9588,7 @@ export interface Active41 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives41 {}
|
export interface Objectives41 { }
|
||||||
|
|
||||||
export interface PrototypePitWeeklyGold {
|
export interface PrototypePitWeeklyGold {
|
||||||
completions?: Completion34[]
|
completions?: Completion34[]
|
||||||
@@ -9630,7 +9630,7 @@ export interface Active43 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives43 {}
|
export interface Objectives43 { }
|
||||||
|
|
||||||
export interface ArcadeSpecialist {
|
export interface ArcadeSpecialist {
|
||||||
completions?: Completion37[]
|
completions?: Completion37[]
|
||||||
@@ -9726,7 +9726,7 @@ export interface Active49 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives49 {}
|
export interface Objectives49 { }
|
||||||
|
|
||||||
export interface TntPvprunDaily {
|
export interface TntPvprunDaily {
|
||||||
completions?: Completion41[]
|
completions?: Completion41[]
|
||||||
@@ -9760,7 +9760,7 @@ export interface Active51 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives51 {}
|
export interface Objectives51 { }
|
||||||
|
|
||||||
export interface TntPvprunWeekly {
|
export interface TntPvprunWeekly {
|
||||||
completions?: Completion43[]
|
completions?: Completion43[]
|
||||||
@@ -9794,7 +9794,7 @@ export interface Active53 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives53 {}
|
export interface Objectives53 { }
|
||||||
|
|
||||||
export interface TntTnttagDaily {
|
export interface TntTnttagDaily {
|
||||||
completions?: Completion45[]
|
completions?: Completion45[]
|
||||||
@@ -9810,7 +9810,7 @@ export interface Active54 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives54 {}
|
export interface Objectives54 { }
|
||||||
|
|
||||||
export interface TntTntrunWeekly {
|
export interface TntTntrunWeekly {
|
||||||
completions?: Completion46[]
|
completions?: Completion46[]
|
||||||
@@ -9826,7 +9826,7 @@ export interface Active55 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives55 {}
|
export interface Objectives55 { }
|
||||||
|
|
||||||
export interface TntTntrunDaily {
|
export interface TntTntrunDaily {
|
||||||
completions?: Completion47[]
|
completions?: Completion47[]
|
||||||
@@ -9842,7 +9842,7 @@ export interface Active56 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives56 {}
|
export interface Objectives56 { }
|
||||||
|
|
||||||
export interface CvcKillDailyNormal {
|
export interface CvcKillDailyNormal {
|
||||||
completions?: Completion48[]
|
completions?: Completion48[]
|
||||||
@@ -9858,7 +9858,7 @@ export interface Active57 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives57 {}
|
export interface Objectives57 { }
|
||||||
|
|
||||||
export interface CvcKillWeekly {
|
export interface CvcKillWeekly {
|
||||||
active?: Active58
|
active?: Active58
|
||||||
@@ -9883,7 +9883,7 @@ export interface Active59 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives59 {}
|
export interface Objectives59 { }
|
||||||
|
|
||||||
export interface CvcWinDailyNormal {
|
export interface CvcWinDailyNormal {
|
||||||
completions?: Completion49[]
|
completions?: Completion49[]
|
||||||
@@ -9899,7 +9899,7 @@ export interface Active60 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives60 {}
|
export interface Objectives60 { }
|
||||||
|
|
||||||
export interface CvcKill {
|
export interface CvcKill {
|
||||||
active?: Active61
|
active?: Active61
|
||||||
@@ -9947,7 +9947,7 @@ export interface Active63 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives63 {}
|
export interface Objectives63 { }
|
||||||
|
|
||||||
export interface BlitzLootChestWeekly {
|
export interface BlitzLootChestWeekly {
|
||||||
completions?: Completion52[]
|
completions?: Completion52[]
|
||||||
@@ -9982,7 +9982,7 @@ export interface Active65 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives65 {}
|
export interface Objectives65 { }
|
||||||
|
|
||||||
export interface BlitzLootChestDaily {
|
export interface BlitzLootChestDaily {
|
||||||
completions?: Completion54[]
|
completions?: Completion54[]
|
||||||
@@ -10052,7 +10052,7 @@ export interface Active69 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives69 {}
|
export interface Objectives69 { }
|
||||||
|
|
||||||
export interface MmDailyPowerPlay {
|
export interface MmDailyPowerPlay {
|
||||||
completions?: Completion58[]
|
completions?: Completion58[]
|
||||||
@@ -10068,7 +10068,7 @@ export interface Active70 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives70 {}
|
export interface Objectives70 { }
|
||||||
|
|
||||||
export interface MmWeeklyWins {
|
export interface MmWeeklyWins {
|
||||||
completions?: Completion59[]
|
completions?: Completion59[]
|
||||||
@@ -10084,7 +10084,7 @@ export interface Active71 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives71 {}
|
export interface Objectives71 { }
|
||||||
|
|
||||||
export interface MmDailyTargetKill {
|
export interface MmDailyTargetKill {
|
||||||
completions?: Completion60[]
|
completions?: Completion60[]
|
||||||
@@ -10100,7 +10100,7 @@ export interface Active72 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives72 {}
|
export interface Objectives72 { }
|
||||||
|
|
||||||
export interface MmWeeklyMurdererKills {
|
export interface MmWeeklyMurdererKills {
|
||||||
completions?: Completion61[]
|
completions?: Completion61[]
|
||||||
@@ -10147,7 +10147,7 @@ export interface Active75 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives75 {}
|
export interface Objectives75 { }
|
||||||
|
|
||||||
export interface UhcTeam {
|
export interface UhcTeam {
|
||||||
completions?: Completion63[]
|
completions?: Completion63[]
|
||||||
@@ -10163,7 +10163,7 @@ export interface Active76 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives76 {}
|
export interface Objectives76 { }
|
||||||
|
|
||||||
export interface UhcWeekly {
|
export interface UhcWeekly {
|
||||||
active?: Active77
|
active?: Active77
|
||||||
@@ -10192,7 +10192,7 @@ export interface Active78 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives78 {}
|
export interface Objectives78 { }
|
||||||
|
|
||||||
export interface UhcWeeklySpecialCookie {
|
export interface UhcWeeklySpecialCookie {
|
||||||
active?: Active79
|
active?: Active79
|
||||||
@@ -10203,7 +10203,7 @@ export interface Active79 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives79 {}
|
export interface Objectives79 { }
|
||||||
|
|
||||||
export interface UhcSolo {
|
export interface UhcSolo {
|
||||||
active?: Active80
|
active?: Active80
|
||||||
@@ -10214,7 +10214,7 @@ export interface Active80 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives80 {}
|
export interface Objectives80 { }
|
||||||
|
|
||||||
export interface UhcMadness {
|
export interface UhcMadness {
|
||||||
completions?: Completion65[]
|
completions?: Completion65[]
|
||||||
@@ -10261,7 +10261,7 @@ export interface Active83 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives83 {}
|
export interface Objectives83 { }
|
||||||
|
|
||||||
export interface TntWeeklySpecial {
|
export interface TntWeeklySpecial {
|
||||||
active?: Active84
|
active?: Active84
|
||||||
@@ -10272,7 +10272,7 @@ export interface Active84 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives84 {}
|
export interface Objectives84 { }
|
||||||
|
|
||||||
export interface SupersmashSoloWin {
|
export interface SupersmashSoloWin {
|
||||||
completions?: Completion67[]
|
completions?: Completion67[]
|
||||||
@@ -10288,7 +10288,7 @@ export interface Active85 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives85 {}
|
export interface Objectives85 { }
|
||||||
|
|
||||||
export interface SupersmashTeamWin {
|
export interface SupersmashTeamWin {
|
||||||
active?: Active86
|
active?: Active86
|
||||||
@@ -10299,7 +10299,7 @@ export interface Active86 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives86 {}
|
export interface Objectives86 { }
|
||||||
|
|
||||||
export interface SupersmashTeamKills {
|
export interface SupersmashTeamKills {
|
||||||
active?: Active87
|
active?: Active87
|
||||||
@@ -10310,7 +10310,7 @@ export interface Active87 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives87 {}
|
export interface Objectives87 { }
|
||||||
|
|
||||||
export interface SupersmashSoloKills {
|
export interface SupersmashSoloKills {
|
||||||
completions?: Completion68[]
|
completions?: Completion68[]
|
||||||
@@ -10326,7 +10326,7 @@ export interface Active88 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives88 {}
|
export interface Objectives88 { }
|
||||||
|
|
||||||
export interface SupersmashWeeklyKills {
|
export interface SupersmashWeeklyKills {
|
||||||
active?: Active89
|
active?: Active89
|
||||||
@@ -10372,7 +10372,7 @@ export interface Active91 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives91 {}
|
export interface Objectives91 { }
|
||||||
|
|
||||||
export interface WarlordsDedication {
|
export interface WarlordsDedication {
|
||||||
active?: Active92
|
active?: Active92
|
||||||
@@ -10383,7 +10383,7 @@ export interface Active92 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives92 {}
|
export interface Objectives92 { }
|
||||||
|
|
||||||
export interface WarlordsVictorious {
|
export interface WarlordsVictorious {
|
||||||
active?: Active93
|
active?: Active93
|
||||||
@@ -10394,7 +10394,7 @@ export interface Active93 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives93 {}
|
export interface Objectives93 { }
|
||||||
|
|
||||||
export interface WarlordsDomination {
|
export interface WarlordsDomination {
|
||||||
active?: Active94
|
active?: Active94
|
||||||
@@ -10405,7 +10405,7 @@ export interface Active94 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives94 {}
|
export interface Objectives94 { }
|
||||||
|
|
||||||
export interface WarlordsCtf {
|
export interface WarlordsCtf {
|
||||||
active?: Active95
|
active?: Active95
|
||||||
@@ -10416,7 +10416,7 @@ export interface Active95 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives95 {}
|
export interface Objectives95 { }
|
||||||
|
|
||||||
export interface BuildBattlePlayer {
|
export interface BuildBattlePlayer {
|
||||||
completions?: Completion70[]
|
completions?: Completion70[]
|
||||||
@@ -10468,7 +10468,7 @@ export interface Active98 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives98 {}
|
export interface Objectives98 { }
|
||||||
|
|
||||||
export interface MegaWallsWeekly {
|
export interface MegaWallsWeekly {
|
||||||
active?: Active99
|
active?: Active99
|
||||||
@@ -10498,7 +10498,7 @@ export interface Active100 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives100 {}
|
export interface Objectives100 { }
|
||||||
|
|
||||||
export interface MegaWallsFaithful {
|
export interface MegaWallsFaithful {
|
||||||
active?: Active101
|
active?: Active101
|
||||||
@@ -10535,7 +10535,7 @@ export interface Active103 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives103 {}
|
export interface Objectives103 { }
|
||||||
|
|
||||||
export interface MmSpecialWeeklyKillerInstinct2020 {
|
export interface MmSpecialWeeklyKillerInstinct2020 {
|
||||||
active?: Active104
|
active?: Active104
|
||||||
@@ -10546,7 +10546,7 @@ export interface Active104 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives104 {}
|
export interface Objectives104 { }
|
||||||
|
|
||||||
export interface SkywarsHalloweenHarvest2020 {
|
export interface SkywarsHalloweenHarvest2020 {
|
||||||
active?: Active105
|
active?: Active105
|
||||||
@@ -10575,7 +10575,7 @@ export interface Active106 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives106 {}
|
export interface Objectives106 { }
|
||||||
|
|
||||||
export interface BuildBattleChristmas {
|
export interface BuildBattleChristmas {
|
||||||
active?: Active107
|
active?: Active107
|
||||||
@@ -10586,7 +10586,7 @@ export interface Active107 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives107 {}
|
export interface Objectives107 { }
|
||||||
|
|
||||||
export interface BuildBattleChristmasWeekly {
|
export interface BuildBattleChristmasWeekly {
|
||||||
active?: Active108
|
active?: Active108
|
||||||
@@ -10597,7 +10597,7 @@ export interface Active108 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives108 {}
|
export interface Objectives108 { }
|
||||||
|
|
||||||
export interface MmDailyInfector {
|
export interface MmDailyInfector {
|
||||||
active?: Active109
|
active?: Active109
|
||||||
@@ -10621,7 +10621,7 @@ export interface Active110 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives110 {}
|
export interface Objectives110 { }
|
||||||
|
|
||||||
export interface BuildBattleHalloween {
|
export interface BuildBattleHalloween {
|
||||||
active?: Active111
|
active?: Active111
|
||||||
@@ -10632,7 +10632,7 @@ export interface Active111 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives111 {}
|
export interface Objectives111 { }
|
||||||
|
|
||||||
export interface SkywarsHalloweenHarvest2021 {
|
export interface SkywarsHalloweenHarvest2021 {
|
||||||
active?: Active112
|
active?: Active112
|
||||||
@@ -10669,7 +10669,7 @@ export interface Active113 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives113 {}
|
export interface Objectives113 { }
|
||||||
|
|
||||||
export interface WoolWarsDailyWins {
|
export interface WoolWarsDailyWins {
|
||||||
completions?: Completion77[]
|
completions?: Completion77[]
|
||||||
@@ -10756,7 +10756,7 @@ export interface Active119 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives119 {}
|
export interface Objectives119 { }
|
||||||
|
|
||||||
export interface PitWeeklyGold {
|
export interface PitWeeklyGold {
|
||||||
active?: Active120
|
active?: Active120
|
||||||
@@ -10806,7 +10806,7 @@ export interface Active122 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives122 {}
|
export interface Objectives122 { }
|
||||||
|
|
||||||
export interface BedwarsDailyFinalKiller {
|
export interface BedwarsDailyFinalKiller {
|
||||||
completions?: Completion81[]
|
completions?: Completion81[]
|
||||||
@@ -10833,7 +10833,7 @@ export interface Active123 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives123 {}
|
export interface Objectives123 { }
|
||||||
|
|
||||||
export interface MmSpecialWeeklyKillerInstinct2023 {
|
export interface MmSpecialWeeklyKillerInstinct2023 {
|
||||||
active?: Active124
|
active?: Active124
|
||||||
@@ -10844,7 +10844,7 @@ export interface Active124 {
|
|||||||
started?: number
|
started?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Objectives124 {}
|
export interface Objectives124 { }
|
||||||
|
|
||||||
export interface Dmcrates102019 {
|
export interface Dmcrates102019 {
|
||||||
MVP_PLUS?: boolean
|
MVP_PLUS?: boolean
|
||||||
@@ -1,430 +0,0 @@
|
|||||||
export default interface TimeZones {
|
|
||||||
"Africa/Abidjan": string
|
|
||||||
"Africa/Accra": string
|
|
||||||
"Africa/Addis_Ababa": string
|
|
||||||
"Africa/Algiers": string
|
|
||||||
"Africa/Asmera": string
|
|
||||||
"Africa/Bamako": string
|
|
||||||
"Africa/Bangui": string
|
|
||||||
"Africa/Banjul": string
|
|
||||||
"Africa/Bissau": string
|
|
||||||
"Africa/Blantyre": string
|
|
||||||
"Africa/Brazzaville": string
|
|
||||||
"Africa/Bujumbura": string
|
|
||||||
"Africa/Cairo": string
|
|
||||||
"Africa/Casablanca": string
|
|
||||||
"Africa/Ceuta": string
|
|
||||||
"Africa/Conakry": string
|
|
||||||
"Africa/Dakar": string
|
|
||||||
"Africa/Dar_es_Salaam": string
|
|
||||||
"Africa/Djibouti": string
|
|
||||||
"Africa/Douala": string
|
|
||||||
"Africa/El_Aaiun": string
|
|
||||||
"Africa/Freetown": string
|
|
||||||
"Africa/Gaborone": string
|
|
||||||
"Africa/Harare": string
|
|
||||||
"Africa/Johannesburg": string
|
|
||||||
"Africa/Juba": string
|
|
||||||
"Africa/Kampala": string
|
|
||||||
"Africa/Khartoum": string
|
|
||||||
"Africa/Kigali": string
|
|
||||||
"Africa/Kinshasa": string
|
|
||||||
"Africa/Lagos": string
|
|
||||||
"Africa/Libreville": string
|
|
||||||
"Africa/Lome": string
|
|
||||||
"Africa/Luanda": string
|
|
||||||
"Africa/Lubumbashi": string
|
|
||||||
"Africa/Lusaka": string
|
|
||||||
"Africa/Malabo": string
|
|
||||||
"Africa/Maputo": string
|
|
||||||
"Africa/Maseru": string
|
|
||||||
"Africa/Mbabane": string
|
|
||||||
"Africa/Mogadishu": string
|
|
||||||
"Africa/Monrovia": string
|
|
||||||
"Africa/Nairobi": string
|
|
||||||
"Africa/Ndjamena": string
|
|
||||||
"Africa/Niamey": string
|
|
||||||
"Africa/Nouakchott": string
|
|
||||||
"Africa/Ouagadougou": string
|
|
||||||
"Africa/Porto-Novo": string
|
|
||||||
"Africa/Sao_Tome": string
|
|
||||||
"Africa/Tripoli": string
|
|
||||||
"Africa/Tunis": string
|
|
||||||
"Africa/Windhoek": string
|
|
||||||
"America/Adak": string
|
|
||||||
"America/Anchorage": string
|
|
||||||
"America/Anguilla": string
|
|
||||||
"America/Antigua": string
|
|
||||||
"America/Araguaina": string
|
|
||||||
"America/Argentina/La_Rioja": string
|
|
||||||
"America/Argentina/Rio_Gallegos": string
|
|
||||||
"America/Argentina/Salta": string
|
|
||||||
"America/Argentina/San_Juan": string
|
|
||||||
"America/Argentina/San_Luis": string
|
|
||||||
"America/Argentina/Tucuman": string
|
|
||||||
"America/Argentina/Ushuaia": string
|
|
||||||
"America/Aruba": string
|
|
||||||
"America/Asuncion": string
|
|
||||||
"America/Bahia": string
|
|
||||||
"America/Bahia_Banderas": string
|
|
||||||
"America/Barbados": string
|
|
||||||
"America/Belem": string
|
|
||||||
"America/Belize": string
|
|
||||||
"America/Blanc-Sablon": string
|
|
||||||
"America/Boa_Vista": string
|
|
||||||
"America/Bogota": string
|
|
||||||
"America/Boise": string
|
|
||||||
"America/Buenos_Aires": string
|
|
||||||
"America/Cambridge_Bay": string
|
|
||||||
"America/Campo_Grande": string
|
|
||||||
"America/Cancun": string
|
|
||||||
"America/Caracas": string
|
|
||||||
"America/Catamarca": string
|
|
||||||
"America/Cayenne": string
|
|
||||||
"America/Cayman": string
|
|
||||||
"America/Chicago": string
|
|
||||||
"America/Chihuahua": string
|
|
||||||
"America/Ciudad_Juarez": string
|
|
||||||
"America/Coral_Harbour": string
|
|
||||||
"America/Cordoba": string
|
|
||||||
"America/Costa_Rica": string
|
|
||||||
"America/Creston": string
|
|
||||||
"America/Cuiaba": string
|
|
||||||
"America/Curacao": string
|
|
||||||
"America/Danmarkshavn": string
|
|
||||||
"America/Dawson": string
|
|
||||||
"America/Dawson_Creek": string
|
|
||||||
"America/Denver": string
|
|
||||||
"America/Detroit": string
|
|
||||||
"America/Dominica": string
|
|
||||||
"America/Edmonton": string
|
|
||||||
"America/Eirunepe": string
|
|
||||||
"America/El_Salvador": string
|
|
||||||
"America/Fort_Nelson": string
|
|
||||||
"America/Fortaleza": string
|
|
||||||
"America/Glace_Bay": string
|
|
||||||
"America/Godthab": string
|
|
||||||
"America/Goose_Bay": string
|
|
||||||
"America/Grand_Turk": string
|
|
||||||
"America/Grenada": string
|
|
||||||
"America/Guadeloupe": string
|
|
||||||
"America/Guatemala": string
|
|
||||||
"America/Guayaquil": string
|
|
||||||
"America/Guyana": string
|
|
||||||
"America/Halifax": string
|
|
||||||
"America/Havana": string
|
|
||||||
"America/Hermosillo": string
|
|
||||||
"America/Indiana/Knox": string
|
|
||||||
"America/Indiana/Marengo": string
|
|
||||||
"America/Indiana/Petersburg": string
|
|
||||||
"America/Indiana/Tell_City": string
|
|
||||||
"America/Indiana/Vevay": string
|
|
||||||
"America/Indiana/Vincennes": string
|
|
||||||
"America/Indiana/Winamac": string
|
|
||||||
"America/Indianapolis": string
|
|
||||||
"America/Inuvik": string
|
|
||||||
"America/Iqaluit": string
|
|
||||||
"America/Jamaica": string
|
|
||||||
"America/Jujuy": string
|
|
||||||
"America/Juneau": string
|
|
||||||
"America/Kentucky/Monticello": string
|
|
||||||
"America/Kralendijk": string
|
|
||||||
"America/La_Paz": string
|
|
||||||
"America/Lima": string
|
|
||||||
"America/Los_Angeles": string
|
|
||||||
"America/Louisville": string
|
|
||||||
"America/Lower_Princes": string
|
|
||||||
"America/Maceio": string
|
|
||||||
"America/Managua": string
|
|
||||||
"America/Manaus": string
|
|
||||||
"America/Marigot": string
|
|
||||||
"America/Martinique": string
|
|
||||||
"America/Matamoros": string
|
|
||||||
"America/Mazatlan": string
|
|
||||||
"America/Mendoza": string
|
|
||||||
"America/Menominee": string
|
|
||||||
"America/Merida": string
|
|
||||||
"America/Metlakatla": string
|
|
||||||
"America/Mexico_City": string
|
|
||||||
"America/Miquelon": string
|
|
||||||
"America/Moncton": string
|
|
||||||
"America/Monterrey": string
|
|
||||||
"America/Montevideo": string
|
|
||||||
"America/Montserrat": string
|
|
||||||
"America/Nassau": string
|
|
||||||
"America/New_York": string
|
|
||||||
"America/Nipigon": string
|
|
||||||
"America/Nome": string
|
|
||||||
"America/Noronha": string
|
|
||||||
"America/North_Dakota/Beulah": string
|
|
||||||
"America/North_Dakota/Center": string
|
|
||||||
"America/North_Dakota/New_Salem": string
|
|
||||||
"America/Ojinaga": string
|
|
||||||
"America/Panama": string
|
|
||||||
"America/Pangnirtung": string
|
|
||||||
"America/Paramaribo": string
|
|
||||||
"America/Phoenix": string
|
|
||||||
"America/Port-au-Prince": string
|
|
||||||
"America/Port_of_Spain": string
|
|
||||||
"America/Porto_Velho": string
|
|
||||||
"America/Puerto_Rico": string
|
|
||||||
"America/Punta_Arenas": string
|
|
||||||
"America/Rainy_River": string
|
|
||||||
"America/Rankin_Inlet": string
|
|
||||||
"America/Recife": string
|
|
||||||
"America/Regina": string
|
|
||||||
"America/Resolute": string
|
|
||||||
"America/Rio_Branco": string
|
|
||||||
"America/Santa_Isabel": string
|
|
||||||
"America/Santarem": string
|
|
||||||
"America/Santiago": string
|
|
||||||
"America/Santo_Domingo": string
|
|
||||||
"America/Sao_Paulo": string
|
|
||||||
"America/Scoresbysund": string
|
|
||||||
"America/Sitka": string
|
|
||||||
"America/St_Barthelemy": string
|
|
||||||
"America/St_Johns": string
|
|
||||||
"America/St_Kitts": string
|
|
||||||
"America/St_Lucia": string
|
|
||||||
"America/St_Thomas": string
|
|
||||||
"America/St_Vincent": string
|
|
||||||
"America/Swift_Current": string
|
|
||||||
"America/Tegucigalpa": string
|
|
||||||
"America/Thule": string
|
|
||||||
"America/Thunder_Bay": string
|
|
||||||
"America/Tijuana": string
|
|
||||||
"America/Toronto": string
|
|
||||||
"America/Tortola": string
|
|
||||||
"America/Vancouver": string
|
|
||||||
"America/Whitehorse": string
|
|
||||||
"America/Winnipeg": string
|
|
||||||
"America/Yakutat": string
|
|
||||||
"America/Yellowknife": string
|
|
||||||
"Antarctica/Casey": string
|
|
||||||
"Antarctica/Davis": string
|
|
||||||
"Antarctica/DumontDUrville": string
|
|
||||||
"Antarctica/Macquarie": string
|
|
||||||
"Antarctica/Mawson": string
|
|
||||||
"Antarctica/McMurdo": string
|
|
||||||
"Antarctica/Palmer": string
|
|
||||||
"Antarctica/Rothera": string
|
|
||||||
"Antarctica/Syowa": string
|
|
||||||
"Antarctica/Troll": string
|
|
||||||
"Antarctica/Vostok": string
|
|
||||||
"Arctic/Longyearbyen": string
|
|
||||||
"Asia/Aden": string
|
|
||||||
"Asia/Almaty": string
|
|
||||||
"Asia/Amman": string
|
|
||||||
"Asia/Anadyr": string
|
|
||||||
"Asia/Aqtau": string
|
|
||||||
"Asia/Aqtobe": string
|
|
||||||
"Asia/Ashgabat": string
|
|
||||||
"Asia/Atyrau": string
|
|
||||||
"Asia/Baghdad": string
|
|
||||||
"Asia/Bahrain": string
|
|
||||||
"Asia/Baku": string
|
|
||||||
"Asia/Bangkok": string
|
|
||||||
"Asia/Barnaul": string
|
|
||||||
"Asia/Beirut": string
|
|
||||||
"Asia/Bishkek": string
|
|
||||||
"Asia/Brunei": string
|
|
||||||
"Asia/Calcutta": string
|
|
||||||
"Asia/Chita": string
|
|
||||||
"Asia/Choibalsan": string
|
|
||||||
"Asia/Colombo": string
|
|
||||||
"Asia/Damascus": string
|
|
||||||
"Asia/Dhaka": string
|
|
||||||
"Asia/Dili": string
|
|
||||||
"Asia/Dubai": string
|
|
||||||
"Asia/Dushanbe": string
|
|
||||||
"Asia/Famagusta": string
|
|
||||||
"Asia/Gaza": string
|
|
||||||
"Asia/Hebron": string
|
|
||||||
"Asia/Hong_Kong": string
|
|
||||||
"Asia/Hovd": string
|
|
||||||
"Asia/Irkutsk": string
|
|
||||||
"Asia/Jakarta": string
|
|
||||||
"Asia/Jayapura": string
|
|
||||||
"Asia/Jerusalem": string
|
|
||||||
"Asia/Kabul": string
|
|
||||||
"Asia/Kamchatka": string
|
|
||||||
"Asia/Karachi": string
|
|
||||||
"Asia/Katmandu": string
|
|
||||||
"Asia/Khandyga": string
|
|
||||||
"Asia/Krasnoyarsk": string
|
|
||||||
"Asia/Kuala_Lumpur": string
|
|
||||||
"Asia/Kuching": string
|
|
||||||
"Asia/Kuwait": string
|
|
||||||
"Asia/Macau": string
|
|
||||||
"Asia/Magadan": string
|
|
||||||
"Asia/Makassar": string
|
|
||||||
"Asia/Manila": string
|
|
||||||
"Asia/Muscat": string
|
|
||||||
"Asia/Nicosia": string
|
|
||||||
"Asia/Novokuznetsk": string
|
|
||||||
"Asia/Novosibirsk": string
|
|
||||||
"Asia/Omsk": string
|
|
||||||
"Asia/Oral": string
|
|
||||||
"Asia/Phnom_Penh": string
|
|
||||||
"Asia/Pontianak": string
|
|
||||||
"Asia/Pyongyang": string
|
|
||||||
"Asia/Qatar": string
|
|
||||||
"Asia/Qostanay": string
|
|
||||||
"Asia/Qyzylorda": string
|
|
||||||
"Asia/Rangoon": string
|
|
||||||
"Asia/Riyadh": string
|
|
||||||
"Asia/Saigon": string
|
|
||||||
"Asia/Sakhalin": string
|
|
||||||
"Asia/Samarkand": string
|
|
||||||
"Asia/Seoul": string
|
|
||||||
"Asia/Shanghai": string
|
|
||||||
"Asia/Singapore": string
|
|
||||||
"Asia/Srednekolymsk": string
|
|
||||||
"Asia/Taipei": string
|
|
||||||
"Asia/Tashkent": string
|
|
||||||
"Asia/Tbilisi": string
|
|
||||||
"Asia/Tehran": string
|
|
||||||
"Asia/Thimphu": string
|
|
||||||
"Asia/Tokyo": string
|
|
||||||
"Asia/Tomsk": string
|
|
||||||
"Asia/Ulaanbaatar": string
|
|
||||||
"Asia/Urumqi": string
|
|
||||||
"Asia/Ust-Nera": string
|
|
||||||
"Asia/Vientiane": string
|
|
||||||
"Asia/Vladivostok": string
|
|
||||||
"Asia/Yakutsk": string
|
|
||||||
"Asia/Yekaterinburg": string
|
|
||||||
"Asia/Yerevan": string
|
|
||||||
"Atlantic/Azores": string
|
|
||||||
"Atlantic/Bermuda": string
|
|
||||||
"Atlantic/Canary": string
|
|
||||||
"Atlantic/Cape_Verde": string
|
|
||||||
"Atlantic/Faeroe": string
|
|
||||||
"Atlantic/Madeira": string
|
|
||||||
"Atlantic/Reykjavik": string
|
|
||||||
"Atlantic/South_Georgia": string
|
|
||||||
"Atlantic/St_Helena": string
|
|
||||||
"Atlantic/Stanley": string
|
|
||||||
"Australia/Adelaide": string
|
|
||||||
"Australia/Brisbane": string
|
|
||||||
"Australia/Broken_Hill": string
|
|
||||||
"Australia/Currie": string
|
|
||||||
"Australia/Darwin": string
|
|
||||||
"Australia/Eucla": string
|
|
||||||
"Australia/Hobart": string
|
|
||||||
"Australia/Lindeman": string
|
|
||||||
"Australia/Lord_Howe": string
|
|
||||||
"Australia/Melbourne": string
|
|
||||||
"Australia/Perth": string
|
|
||||||
"Australia/Sydney": string
|
|
||||||
"Europe/Amsterdam": string
|
|
||||||
"Europe/Andorra": string
|
|
||||||
"Europe/Astrakhan": string
|
|
||||||
"Europe/Athens": string
|
|
||||||
"Europe/Belgrade": string
|
|
||||||
"Europe/Berlin": string
|
|
||||||
"Europe/Bratislava": string
|
|
||||||
"Europe/Brussels": string
|
|
||||||
"Europe/Bucharest": string
|
|
||||||
"Europe/Budapest": string
|
|
||||||
"Europe/Busingen": string
|
|
||||||
"Europe/Chisinau": string
|
|
||||||
"Europe/Copenhagen": string
|
|
||||||
"Europe/Dublin": string
|
|
||||||
"Europe/Gibraltar": string
|
|
||||||
"Europe/Guernsey": string
|
|
||||||
"Europe/Helsinki": string
|
|
||||||
"Europe/Isle_of_Man": string
|
|
||||||
"Europe/Istanbul": string
|
|
||||||
"Europe/Jersey": string
|
|
||||||
"Europe/Kaliningrad": string
|
|
||||||
"Europe/Kiev": string
|
|
||||||
"Europe/Kirov": string
|
|
||||||
"Europe/Lisbon": string
|
|
||||||
"Europe/Ljubljana": string
|
|
||||||
"Europe/London": string
|
|
||||||
"Europe/Luxembourg": string
|
|
||||||
"Europe/Madrid": string
|
|
||||||
"Europe/Malta": string
|
|
||||||
"Europe/Mariehamn": string
|
|
||||||
"Europe/Minsk": string
|
|
||||||
"Europe/Monaco": string
|
|
||||||
"Europe/Moscow": string
|
|
||||||
"Europe/Oslo": string
|
|
||||||
"Europe/Paris": string
|
|
||||||
"Europe/Podgorica": string
|
|
||||||
"Europe/Prague": string
|
|
||||||
"Europe/Riga": string
|
|
||||||
"Europe/Rome": string
|
|
||||||
"Europe/Samara": string
|
|
||||||
"Europe/San_Marino": string
|
|
||||||
"Europe/Sarajevo": string
|
|
||||||
"Europe/Saratov": string
|
|
||||||
"Europe/Simferopol": string
|
|
||||||
"Europe/Skopje": string
|
|
||||||
"Europe/Sofia": string
|
|
||||||
"Europe/Stockholm": string
|
|
||||||
"Europe/Tallinn": string
|
|
||||||
"Europe/Tirane": string
|
|
||||||
"Europe/Ulyanovsk": string
|
|
||||||
"Europe/Uzhgorod": string
|
|
||||||
"Europe/Vaduz": string
|
|
||||||
"Europe/Vatican": string
|
|
||||||
"Europe/Vienna": string
|
|
||||||
"Europe/Vilnius": string
|
|
||||||
"Europe/Volgograd": string
|
|
||||||
"Europe/Warsaw": string
|
|
||||||
"Europe/Zagreb": string
|
|
||||||
"Europe/Zaporozhye": string
|
|
||||||
"Europe/Zurich": string
|
|
||||||
"Indian/Antananarivo": string
|
|
||||||
"Indian/Chagos": string
|
|
||||||
"Indian/Christmas": string
|
|
||||||
"Indian/Cocos": string
|
|
||||||
"Indian/Comoro": string
|
|
||||||
"Indian/Kerguelen": string
|
|
||||||
"Indian/Mahe": string
|
|
||||||
"Indian/Maldives": string
|
|
||||||
"Indian/Mauritius": string
|
|
||||||
"Indian/Mayotte": string
|
|
||||||
"Indian/Reunion": string
|
|
||||||
"Pacific/Apia": string
|
|
||||||
"Pacific/Auckland": string
|
|
||||||
"Pacific/Bougainville": string
|
|
||||||
"Pacific/Chatham": string
|
|
||||||
"Pacific/Easter": string
|
|
||||||
"Pacific/Efate": string
|
|
||||||
"Pacific/Enderbury": string
|
|
||||||
"Pacific/Fakaofo": string
|
|
||||||
"Pacific/Fiji": string
|
|
||||||
"Pacific/Funafuti": string
|
|
||||||
"Pacific/Galapagos": string
|
|
||||||
"Pacific/Gambier": string
|
|
||||||
"Pacific/Guadalcanal": string
|
|
||||||
"Pacific/Guam": string
|
|
||||||
"Pacific/Honolulu": string
|
|
||||||
"Pacific/Johnston": string
|
|
||||||
"Pacific/Kiritimati": string
|
|
||||||
"Pacific/Kosrae": string
|
|
||||||
"Pacific/Kwajalein": string
|
|
||||||
"Pacific/Majuro": string
|
|
||||||
"Pacific/Marquesas": string
|
|
||||||
"Pacific/Midway": string
|
|
||||||
"Pacific/Nauru": string
|
|
||||||
"Pacific/Niue": string
|
|
||||||
"Pacific/Norfolk": string
|
|
||||||
"Pacific/Noumea": string
|
|
||||||
"Pacific/Pago_Pago": string
|
|
||||||
"Pacific/Palau": string
|
|
||||||
"Pacific/Pitcairn": string
|
|
||||||
"Pacific/Ponape": string
|
|
||||||
"Pacific/Port_Moresby": string
|
|
||||||
"Pacific/Rarotonga": string
|
|
||||||
"Pacific/Saipan": string
|
|
||||||
"Pacific/Tahiti": string
|
|
||||||
"Pacific/Tarawa": string
|
|
||||||
"Pacific/Tongatapu": string
|
|
||||||
"Pacific/Truk": string
|
|
||||||
"Pacific/Wake": string
|
|
||||||
"Pacific/Wallis": string
|
|
||||||
}
|
|
||||||
@@ -1,29 +1,27 @@
|
|||||||
import Autocomplete from "./Autocomplete"
|
import IAutocomplete from "./IAutocomplete"
|
||||||
import Button from "./Button"
|
import IButton from "./IButton"
|
||||||
import Command from "./Command"
|
import ICommand from "./ICommand"
|
||||||
import ContextMenu from "./ContextMenu"
|
import IContextMenu from "./IContextMenu"
|
||||||
import Event from "./Event"
|
import IEvent from "./IEvent"
|
||||||
import Modal from "./Modal"
|
import IModal from "./IModal"
|
||||||
|
|
||||||
import Env from "./Env"
|
import IEnv from "./IEnv"
|
||||||
import Cron from "./Cron"
|
import ICron from "./ICron"
|
||||||
import TimeZones from "./TimeZones"
|
|
||||||
|
|
||||||
import { Guild, GuildData } from "./Guild"
|
import { IGuild, IGuildData } from "./IGuild"
|
||||||
import { Player, PlayerData } from "./Player"
|
import { IPlayer, IPlayerData } from "./IPlayer"
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Env,
|
IEnv,
|
||||||
Cron,
|
ICron,
|
||||||
TimeZones,
|
IAutocomplete,
|
||||||
Autocomplete,
|
IButton,
|
||||||
Button,
|
ICommand,
|
||||||
Command,
|
IContextMenu,
|
||||||
ContextMenu,
|
IEvent,
|
||||||
Event,
|
IModal,
|
||||||
Modal,
|
IGuild,
|
||||||
Guild,
|
IGuildData,
|
||||||
GuildData,
|
IPlayer,
|
||||||
Player,
|
IPlayerData
|
||||||
PlayerData
|
|
||||||
}
|
}
|
||||||
|
|||||||
432
src/typings/TimeZones.ts
Normal file
432
src/typings/TimeZones.ts
Normal file
@@ -0,0 +1,432 @@
|
|||||||
|
const TimeZones = [
|
||||||
|
"Africa/Abidjan",
|
||||||
|
"Africa/Accra",
|
||||||
|
"Africa/Addis_Ababa",
|
||||||
|
"Africa/Algiers",
|
||||||
|
"Africa/Asmera",
|
||||||
|
"Africa/Bamako",
|
||||||
|
"Africa/Bangui",
|
||||||
|
"Africa/Banjul",
|
||||||
|
"Africa/Bissau",
|
||||||
|
"Africa/Blantyre",
|
||||||
|
"Africa/Brazzaville",
|
||||||
|
"Africa/Bujumbura",
|
||||||
|
"Africa/Cairo",
|
||||||
|
"Africa/Casablanca",
|
||||||
|
"Africa/Ceuta",
|
||||||
|
"Africa/Conakry",
|
||||||
|
"Africa/Dakar",
|
||||||
|
"Africa/Dar_es_Salaam",
|
||||||
|
"Africa/Djibouti",
|
||||||
|
"Africa/Douala",
|
||||||
|
"Africa/El_Aaiun",
|
||||||
|
"Africa/Freetown",
|
||||||
|
"Africa/Gaborone",
|
||||||
|
"Africa/Harare",
|
||||||
|
"Africa/Johannesburg",
|
||||||
|
"Africa/Juba",
|
||||||
|
"Africa/Kampala",
|
||||||
|
"Africa/Khartoum",
|
||||||
|
"Africa/Kigali",
|
||||||
|
"Africa/Kinshasa",
|
||||||
|
"Africa/Lagos",
|
||||||
|
"Africa/Libreville",
|
||||||
|
"Africa/Lome",
|
||||||
|
"Africa/Luanda",
|
||||||
|
"Africa/Lubumbashi",
|
||||||
|
"Africa/Lusaka",
|
||||||
|
"Africa/Malabo",
|
||||||
|
"Africa/Maputo",
|
||||||
|
"Africa/Maseru",
|
||||||
|
"Africa/Mbabane",
|
||||||
|
"Africa/Mogadishu",
|
||||||
|
"Africa/Monrovia",
|
||||||
|
"Africa/Nairobi",
|
||||||
|
"Africa/Ndjamena",
|
||||||
|
"Africa/Niamey",
|
||||||
|
"Africa/Nouakchott",
|
||||||
|
"Africa/Ouagadougou",
|
||||||
|
"Africa/Porto-Novo",
|
||||||
|
"Africa/Sao_Tome",
|
||||||
|
"Africa/Tripoli",
|
||||||
|
"Africa/Tunis",
|
||||||
|
"Africa/Windhoek",
|
||||||
|
"America/Adak",
|
||||||
|
"America/Anchorage",
|
||||||
|
"America/Anguilla",
|
||||||
|
"America/Antigua",
|
||||||
|
"America/Araguaina",
|
||||||
|
"America/Argentina/La_Rioja",
|
||||||
|
"America/Argentina/Rio_Gallegos",
|
||||||
|
"America/Argentina/Salta",
|
||||||
|
"America/Argentina/San_Juan",
|
||||||
|
"America/Argentina/San_Luis",
|
||||||
|
"America/Argentina/Tucuman",
|
||||||
|
"America/Argentina/Ushuaia",
|
||||||
|
"America/Aruba",
|
||||||
|
"America/Asuncion",
|
||||||
|
"America/Bahia",
|
||||||
|
"America/Bahia_Banderas",
|
||||||
|
"America/Barbados",
|
||||||
|
"America/Belem",
|
||||||
|
"America/Belize",
|
||||||
|
"America/Blanc-Sablon",
|
||||||
|
"America/Boa_Vista",
|
||||||
|
"America/Bogota",
|
||||||
|
"America/Boise",
|
||||||
|
"America/Buenos_Aires",
|
||||||
|
"America/Cambridge_Bay",
|
||||||
|
"America/Campo_Grande",
|
||||||
|
"America/Cancun",
|
||||||
|
"America/Caracas",
|
||||||
|
"America/Catamarca",
|
||||||
|
"America/Cayenne",
|
||||||
|
"America/Cayman",
|
||||||
|
"America/Chicago",
|
||||||
|
"America/Chihuahua",
|
||||||
|
"America/Ciudad_Juarez",
|
||||||
|
"America/Coral_Harbour",
|
||||||
|
"America/Cordoba",
|
||||||
|
"America/Costa_Rica",
|
||||||
|
"America/Creston",
|
||||||
|
"America/Cuiaba",
|
||||||
|
"America/Curacao",
|
||||||
|
"America/Danmarkshavn",
|
||||||
|
"America/Dawson",
|
||||||
|
"America/Dawson_Creek",
|
||||||
|
"America/Denver",
|
||||||
|
"America/Detroit",
|
||||||
|
"America/Dominica",
|
||||||
|
"America/Edmonton",
|
||||||
|
"America/Eirunepe",
|
||||||
|
"America/El_Salvador",
|
||||||
|
"America/Fort_Nelson",
|
||||||
|
"America/Fortaleza",
|
||||||
|
"America/Glace_Bay",
|
||||||
|
"America/Godthab",
|
||||||
|
"America/Goose_Bay",
|
||||||
|
"America/Grand_Turk",
|
||||||
|
"America/Grenada",
|
||||||
|
"America/Guadeloupe",
|
||||||
|
"America/Guatemala",
|
||||||
|
"America/Guayaquil",
|
||||||
|
"America/Guyana",
|
||||||
|
"America/Halifax",
|
||||||
|
"America/Havana",
|
||||||
|
"America/Hermosillo",
|
||||||
|
"America/Indiana/Knox",
|
||||||
|
"America/Indiana/Marengo",
|
||||||
|
"America/Indiana/Petersburg",
|
||||||
|
"America/Indiana/Tell_City",
|
||||||
|
"America/Indiana/Vevay",
|
||||||
|
"America/Indiana/Vincennes",
|
||||||
|
"America/Indiana/Winamac",
|
||||||
|
"America/Indianapolis",
|
||||||
|
"America/Inuvik",
|
||||||
|
"America/Iqaluit",
|
||||||
|
"America/Jamaica",
|
||||||
|
"America/Jujuy",
|
||||||
|
"America/Juneau",
|
||||||
|
"America/Kentucky/Monticello",
|
||||||
|
"America/Kralendijk",
|
||||||
|
"America/La_Paz",
|
||||||
|
"America/Lima",
|
||||||
|
"America/Los_Angeles",
|
||||||
|
"America/Louisville",
|
||||||
|
"America/Lower_Princes",
|
||||||
|
"America/Maceio",
|
||||||
|
"America/Managua",
|
||||||
|
"America/Manaus",
|
||||||
|
"America/Marigot",
|
||||||
|
"America/Martinique",
|
||||||
|
"America/Matamoros",
|
||||||
|
"America/Mazatlan",
|
||||||
|
"America/Mendoza",
|
||||||
|
"America/Menominee",
|
||||||
|
"America/Merida",
|
||||||
|
"America/Metlakatla",
|
||||||
|
"America/Mexico_City",
|
||||||
|
"America/Miquelon",
|
||||||
|
"America/Moncton",
|
||||||
|
"America/Monterrey",
|
||||||
|
"America/Montevideo",
|
||||||
|
"America/Montserrat",
|
||||||
|
"America/Nassau",
|
||||||
|
"America/New_York",
|
||||||
|
"America/Nipigon",
|
||||||
|
"America/Nome",
|
||||||
|
"America/Noronha",
|
||||||
|
"America/North_Dakota/Beulah",
|
||||||
|
"America/North_Dakota/Center",
|
||||||
|
"America/North_Dakota/New_Salem",
|
||||||
|
"America/Ojinaga",
|
||||||
|
"America/Panama",
|
||||||
|
"America/Pangnirtung",
|
||||||
|
"America/Paramaribo",
|
||||||
|
"America/Phoenix",
|
||||||
|
"America/Port-au-Prince",
|
||||||
|
"America/Port_of_Spain",
|
||||||
|
"America/Porto_Velho",
|
||||||
|
"America/Puerto_Rico",
|
||||||
|
"America/Punta_Arenas",
|
||||||
|
"America/Rainy_River",
|
||||||
|
"America/Rankin_Inlet",
|
||||||
|
"America/Recife",
|
||||||
|
"America/Regina",
|
||||||
|
"America/Resolute",
|
||||||
|
"America/Rio_Branco",
|
||||||
|
"America/Santa_Isabel",
|
||||||
|
"America/Santarem",
|
||||||
|
"America/Santiago",
|
||||||
|
"America/Santo_Domingo",
|
||||||
|
"America/Sao_Paulo",
|
||||||
|
"America/Scoresbysund",
|
||||||
|
"America/Sitka",
|
||||||
|
"America/St_Barthelemy",
|
||||||
|
"America/St_Johns",
|
||||||
|
"America/St_Kitts",
|
||||||
|
"America/St_Lucia",
|
||||||
|
"America/St_Thomas",
|
||||||
|
"America/St_Vincent",
|
||||||
|
"America/Swift_Current",
|
||||||
|
"America/Tegucigalpa",
|
||||||
|
"America/Thule",
|
||||||
|
"America/Thunder_Bay",
|
||||||
|
"America/Tijuana",
|
||||||
|
"America/Toronto",
|
||||||
|
"America/Tortola",
|
||||||
|
"America/Vancouver",
|
||||||
|
"America/Whitehorse",
|
||||||
|
"America/Winnipeg",
|
||||||
|
"America/Yakutat",
|
||||||
|
"America/Yellowknife",
|
||||||
|
"Antarctica/Casey",
|
||||||
|
"Antarctica/Davis",
|
||||||
|
"Antarctica/DumontDUrville",
|
||||||
|
"Antarctica/Macquarie",
|
||||||
|
"Antarctica/Mawson",
|
||||||
|
"Antarctica/McMurdo",
|
||||||
|
"Antarctica/Palmer",
|
||||||
|
"Antarctica/Rothera",
|
||||||
|
"Antarctica/Syowa",
|
||||||
|
"Antarctica/Troll",
|
||||||
|
"Antarctica/Vostok",
|
||||||
|
"Arctic/Longyearbyen",
|
||||||
|
"Asia/Aden",
|
||||||
|
"Asia/Almaty",
|
||||||
|
"Asia/Amman",
|
||||||
|
"Asia/Anadyr",
|
||||||
|
"Asia/Aqtau",
|
||||||
|
"Asia/Aqtobe",
|
||||||
|
"Asia/Ashgabat",
|
||||||
|
"Asia/Atyrau",
|
||||||
|
"Asia/Baghdad",
|
||||||
|
"Asia/Bahrain",
|
||||||
|
"Asia/Baku",
|
||||||
|
"Asia/Bangkok",
|
||||||
|
"Asia/Barnaul",
|
||||||
|
"Asia/Beirut",
|
||||||
|
"Asia/Bishkek",
|
||||||
|
"Asia/Brunei",
|
||||||
|
"Asia/Calcutta",
|
||||||
|
"Asia/Chita",
|
||||||
|
"Asia/Choibalsan",
|
||||||
|
"Asia/Colombo",
|
||||||
|
"Asia/Damascus",
|
||||||
|
"Asia/Dhaka",
|
||||||
|
"Asia/Dili",
|
||||||
|
"Asia/Dubai",
|
||||||
|
"Asia/Dushanbe",
|
||||||
|
"Asia/Famagusta",
|
||||||
|
"Asia/Gaza",
|
||||||
|
"Asia/Hebron",
|
||||||
|
"Asia/Hong_Kong",
|
||||||
|
"Asia/Hovd",
|
||||||
|
"Asia/Irkutsk",
|
||||||
|
"Asia/Jakarta",
|
||||||
|
"Asia/Jayapura",
|
||||||
|
"Asia/Jerusalem",
|
||||||
|
"Asia/Kabul",
|
||||||
|
"Asia/Kamchatka",
|
||||||
|
"Asia/Karachi",
|
||||||
|
"Asia/Katmandu",
|
||||||
|
"Asia/Khandyga",
|
||||||
|
"Asia/Krasnoyarsk",
|
||||||
|
"Asia/Kuala_Lumpur",
|
||||||
|
"Asia/Kuching",
|
||||||
|
"Asia/Kuwait",
|
||||||
|
"Asia/Macau",
|
||||||
|
"Asia/Magadan",
|
||||||
|
"Asia/Makassar",
|
||||||
|
"Asia/Manila",
|
||||||
|
"Asia/Muscat",
|
||||||
|
"Asia/Nicosia",
|
||||||
|
"Asia/Novokuznetsk",
|
||||||
|
"Asia/Novosibirsk",
|
||||||
|
"Asia/Omsk",
|
||||||
|
"Asia/Oral",
|
||||||
|
"Asia/Phnom_Penh",
|
||||||
|
"Asia/Pontianak",
|
||||||
|
"Asia/Pyongyang",
|
||||||
|
"Asia/Qatar",
|
||||||
|
"Asia/Qostanay",
|
||||||
|
"Asia/Qyzylorda",
|
||||||
|
"Asia/Rangoon",
|
||||||
|
"Asia/Riyadh",
|
||||||
|
"Asia/Saigon",
|
||||||
|
"Asia/Sakhalin",
|
||||||
|
"Asia/Samarkand",
|
||||||
|
"Asia/Seoul",
|
||||||
|
"Asia/Shanghai",
|
||||||
|
"Asia/Singapore",
|
||||||
|
"Asia/Srednekolymsk",
|
||||||
|
"Asia/Taipei",
|
||||||
|
"Asia/Tashkent",
|
||||||
|
"Asia/Tbilisi",
|
||||||
|
"Asia/Tehran",
|
||||||
|
"Asia/Thimphu",
|
||||||
|
"Asia/Tokyo",
|
||||||
|
"Asia/Tomsk",
|
||||||
|
"Asia/Ulaanbaatar",
|
||||||
|
"Asia/Urumqi",
|
||||||
|
"Asia/Ust-Nera",
|
||||||
|
"Asia/Vientiane",
|
||||||
|
"Asia/Vladivostok",
|
||||||
|
"Asia/Yakutsk",
|
||||||
|
"Asia/Yekaterinburg",
|
||||||
|
"Asia/Yerevan",
|
||||||
|
"Atlantic/Azores",
|
||||||
|
"Atlantic/Bermuda",
|
||||||
|
"Atlantic/Canary",
|
||||||
|
"Atlantic/Cape_Verde",
|
||||||
|
"Atlantic/Faeroe",
|
||||||
|
"Atlantic/Madeira",
|
||||||
|
"Atlantic/Reykjavik",
|
||||||
|
"Atlantic/South_Georgia",
|
||||||
|
"Atlantic/St_Helena",
|
||||||
|
"Atlantic/Stanley",
|
||||||
|
"Australia/Adelaide",
|
||||||
|
"Australia/Brisbane",
|
||||||
|
"Australia/Broken_Hill",
|
||||||
|
"Australia/Currie",
|
||||||
|
"Australia/Darwin",
|
||||||
|
"Australia/Eucla",
|
||||||
|
"Australia/Hobart",
|
||||||
|
"Australia/Lindeman",
|
||||||
|
"Australia/Lord_Howe",
|
||||||
|
"Australia/Melbourne",
|
||||||
|
"Australia/Perth",
|
||||||
|
"Australia/Sydney",
|
||||||
|
"Europe/Amsterdam",
|
||||||
|
"Europe/Andorra",
|
||||||
|
"Europe/Astrakhan",
|
||||||
|
"Europe/Athens",
|
||||||
|
"Europe/Belgrade",
|
||||||
|
"Europe/Berlin",
|
||||||
|
"Europe/Bratislava",
|
||||||
|
"Europe/Brussels",
|
||||||
|
"Europe/Bucharest",
|
||||||
|
"Europe/Budapest",
|
||||||
|
"Europe/Busingen",
|
||||||
|
"Europe/Chisinau",
|
||||||
|
"Europe/Copenhagen",
|
||||||
|
"Europe/Dublin",
|
||||||
|
"Europe/Gibraltar",
|
||||||
|
"Europe/Guernsey",
|
||||||
|
"Europe/Helsinki",
|
||||||
|
"Europe/Isle_of_Man",
|
||||||
|
"Europe/Istanbul",
|
||||||
|
"Europe/Jersey",
|
||||||
|
"Europe/Kaliningrad",
|
||||||
|
"Europe/Kiev",
|
||||||
|
"Europe/Kirov",
|
||||||
|
"Europe/Lisbon",
|
||||||
|
"Europe/Ljubljana",
|
||||||
|
"Europe/London",
|
||||||
|
"Europe/Luxembourg",
|
||||||
|
"Europe/Madrid",
|
||||||
|
"Europe/Malta",
|
||||||
|
"Europe/Mariehamn",
|
||||||
|
"Europe/Minsk",
|
||||||
|
"Europe/Monaco",
|
||||||
|
"Europe/Moscow",
|
||||||
|
"Europe/Oslo",
|
||||||
|
"Europe/Paris",
|
||||||
|
"Europe/Podgorica",
|
||||||
|
"Europe/Prague",
|
||||||
|
"Europe/Riga",
|
||||||
|
"Europe/Rome",
|
||||||
|
"Europe/Samara",
|
||||||
|
"Europe/San_Marino",
|
||||||
|
"Europe/Sarajevo",
|
||||||
|
"Europe/Saratov",
|
||||||
|
"Europe/Simferopol",
|
||||||
|
"Europe/Skopje",
|
||||||
|
"Europe/Sofia",
|
||||||
|
"Europe/Stockholm",
|
||||||
|
"Europe/Tallinn",
|
||||||
|
"Europe/Tirane",
|
||||||
|
"Europe/Ulyanovsk",
|
||||||
|
"Europe/Uzhgorod",
|
||||||
|
"Europe/Vaduz",
|
||||||
|
"Europe/Vatican",
|
||||||
|
"Europe/Vienna",
|
||||||
|
"Europe/Vilnius",
|
||||||
|
"Europe/Volgograd",
|
||||||
|
"Europe/Warsaw",
|
||||||
|
"Europe/Zagreb",
|
||||||
|
"Europe/Zaporozhye",
|
||||||
|
"Europe/Zurich",
|
||||||
|
"Indian/Antananarivo",
|
||||||
|
"Indian/Chagos",
|
||||||
|
"Indian/Christmas",
|
||||||
|
"Indian/Cocos",
|
||||||
|
"Indian/Comoro",
|
||||||
|
"Indian/Kerguelen",
|
||||||
|
"Indian/Mahe",
|
||||||
|
"Indian/Maldives",
|
||||||
|
"Indian/Mauritius",
|
||||||
|
"Indian/Mayotte",
|
||||||
|
"Indian/Reunion",
|
||||||
|
"Pacific/Apia",
|
||||||
|
"Pacific/Auckland",
|
||||||
|
"Pacific/Bougainville",
|
||||||
|
"Pacific/Chatham",
|
||||||
|
"Pacific/Easter",
|
||||||
|
"Pacific/Efate",
|
||||||
|
"Pacific/Enderbury",
|
||||||
|
"Pacific/Fakaofo",
|
||||||
|
"Pacific/Fiji",
|
||||||
|
"Pacific/Funafuti",
|
||||||
|
"Pacific/Galapagos",
|
||||||
|
"Pacific/Gambier",
|
||||||
|
"Pacific/Guadalcanal",
|
||||||
|
"Pacific/Guam",
|
||||||
|
"Pacific/Honolulu",
|
||||||
|
"Pacific/Johnston",
|
||||||
|
"Pacific/Kiritimati",
|
||||||
|
"Pacific/Kosrae",
|
||||||
|
"Pacific/Kwajalein",
|
||||||
|
"Pacific/Majuro",
|
||||||
|
"Pacific/Marquesas",
|
||||||
|
"Pacific/Midway",
|
||||||
|
"Pacific/Nauru",
|
||||||
|
"Pacific/Niue",
|
||||||
|
"Pacific/Norfolk",
|
||||||
|
"Pacific/Noumea",
|
||||||
|
"Pacific/Pago_Pago",
|
||||||
|
"Pacific/Palau",
|
||||||
|
"Pacific/Pitcairn",
|
||||||
|
"Pacific/Ponape",
|
||||||
|
"Pacific/Port_Moresby",
|
||||||
|
"Pacific/Rarotonga",
|
||||||
|
"Pacific/Saipan",
|
||||||
|
"Pacific/Tahiti",
|
||||||
|
"Pacific/Tarawa",
|
||||||
|
"Pacific/Tongatapu",
|
||||||
|
"Pacific/Truk",
|
||||||
|
"Pacific/Wake",
|
||||||
|
"Pacific/Wallis"
|
||||||
|
] as const
|
||||||
|
|
||||||
|
export default TimeZones
|
||||||
@@ -1,5 +1,8 @@
|
|||||||
import { ChatInputCommandInteraction } from "discord.js"
|
import { ChatInputCommandInteraction } from "discord.js"
|
||||||
import { ExtendedClient } from "utils/Client"
|
import { ExtendedClient } from "utils/Client"
|
||||||
|
import TZs from "./TimeZones"
|
||||||
|
|
||||||
|
export type TimeZones = typeof TZs[number]
|
||||||
|
|
||||||
export type SubcommandFunc = (interaction: ChatInputCommandInteraction, client?: ExtendedClient) => Promise<void>
|
export type SubcommandFunc = (interaction: ChatInputCommandInteraction, client?: ExtendedClient) => Promise<void>
|
||||||
|
|
||||||
@@ -10,4 +13,4 @@ export type SnipeCache = {
|
|||||||
createdAt: number
|
createdAt: number
|
||||||
deletedAt: number
|
deletedAt: number
|
||||||
attachments: string[]
|
attachments: string[]
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
import { ExtendedClient } from "./Client"
|
import { ExtendedClient } from "./Client"
|
||||||
import env from "./Env"
|
import env from "./Env"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js"
|
import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js"
|
||||||
import color from "./functions/colors"
|
import color from "./functions/colors"
|
||||||
type FileType = "js" | "ts"
|
type FileType = "js" | "ts"
|
||||||
@@ -20,7 +20,7 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const file of commandFiles) {
|
for (const file of commandFiles) {
|
||||||
const command: Command = require(`../commands/${file}`)
|
const command: ICommand = require(`../commands/${file}`)
|
||||||
if (command.dev) {
|
if (command.dev) {
|
||||||
commands.push(command.data.toJSON())
|
commands.push(command.data.toJSON())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
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, ContextMenu, Button, Modal, Autocomplete } from "interfaces"
|
import { ICommand, IContextMenu, IButton, IModal, IAutocomplete } from "interfaces"
|
||||||
import env from "./Env"
|
import env from "./Env"
|
||||||
import autoDeployCommands from "./Autodeploy"
|
import autoDeployCommands from "./Autodeploy"
|
||||||
|
|
||||||
export class ExtendedClient extends Client {
|
export class ExtendedClient extends Client {
|
||||||
commands: Collection<string, Command> = new Collection()
|
commands: Collection<string, ICommand> = new Collection()
|
||||||
contextmenus: Collection<string, ContextMenu> = new Collection()
|
contextmenus: Collection<string, IContextMenu> = new Collection()
|
||||||
buttons: Collection<string, Button> = new Collection()
|
buttons: Collection<string, IButton> = new Collection()
|
||||||
modals: Collection<string, Modal> = new Collection()
|
modals: Collection<string, IModal> = new Collection()
|
||||||
autocomplete: Collection<string, Autocomplete> = new Collection()
|
autocomplete: Collection<string, IAutocomplete> = new Collection()
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super({
|
super({
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Env } from "interfaces"
|
import { IEnv } from "interfaces"
|
||||||
import "dotenv/config"
|
import "dotenv/config"
|
||||||
|
|
||||||
const env: Env = {
|
const env: IEnv = {
|
||||||
prod: {
|
prod: {
|
||||||
token: process.env.TOKEN,
|
token: process.env.TOKEN,
|
||||||
mongoURI: process.env.MONGOURI,
|
mongoURI: process.env.MONGOURI,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { ExtendedClient as Client } from "utils/Client"
|
import { ExtendedClient as Client } from "utils/Client"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Autocomplete } from "interfaces"
|
import { IAutocomplete } from "interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import color from "utils/functions/colors"
|
import color from "utils/functions/colors"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
@@ -14,7 +14,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
|
|||||||
|
|
||||||
for (const file of autocompleteFiles) {
|
for (const file of autocompleteFiles) {
|
||||||
const filePath = path.join(autocompletePath, file)
|
const filePath = path.join(autocompletePath, file)
|
||||||
const autocomplete: Autocomplete = require(filePath)
|
const autocomplete: IAutocomplete = require(filePath)
|
||||||
|
|
||||||
if ("name" in autocomplete && "execute" in autocomplete) {
|
if ("name" in autocomplete && "execute" in autocomplete) {
|
||||||
client.autocomplete.set(autocomplete.name, autocomplete)
|
client.autocomplete.set(autocomplete.name, autocomplete)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
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"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Button } from "interfaces"
|
import { IButton } from "interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
@@ -14,7 +14,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
|
|||||||
|
|
||||||
for (const file of btnFiles) {
|
for (const file of btnFiles) {
|
||||||
const filePath = path.join(btnPath, file)
|
const filePath = path.join(btnPath, file)
|
||||||
const btn: Button = require(filePath)
|
const btn: IButton = require(filePath)
|
||||||
|
|
||||||
if ("name" in btn && "execute" in btn) {
|
if ("name" in btn && "execute" in btn) {
|
||||||
client.buttons.set(btn.name, btn)
|
client.buttons.set(btn.name, btn)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
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"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Command } from "interfaces"
|
import { ICommand } from "interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
@@ -14,7 +14,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
|
|||||||
|
|
||||||
for (const file of cmdFiles) {
|
for (const file of cmdFiles) {
|
||||||
const filePath = path.join(cmdPath, file)
|
const filePath = path.join(cmdPath, file)
|
||||||
const cmd: Command = require(filePath)
|
const cmd: ICommand = require(filePath)
|
||||||
|
|
||||||
if ("data" in cmd && "execute" in cmd) {
|
if ("data" in cmd && "execute" in cmd) {
|
||||||
client.commands.set(cmd.data.name, cmd)
|
client.commands.set(cmd.data.name, cmd)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
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"
|
||||||
import { ContextMenu } from "interfaces"
|
import { IContextMenu } from "interfaces"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
@@ -14,7 +14,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
|
|||||||
|
|
||||||
for (const file of contextMenuFiles) {
|
for (const file of contextMenuFiles) {
|
||||||
const filePath = path.join(contextMenuPath, file)
|
const filePath = path.join(contextMenuPath, file)
|
||||||
const cmd: ContextMenu = require(filePath)
|
const cmd: IContextMenu = require(filePath)
|
||||||
|
|
||||||
if ("data" in cmd && "execute" in cmd) {
|
if ("data" in cmd && "execute" in cmd) {
|
||||||
client.contextmenus.set(cmd.data.name, cmd)
|
client.contextmenus.set(cmd.data.name, cmd)
|
||||||
|
|||||||
@@ -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 { ICron } from "interfaces"
|
||||||
|
|
||||||
export default function loadCronEvents() {
|
export default function loadCronEvents() {
|
||||||
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
const cronPath = path.join(__dirname, "..", "..", "events", "cron")
|
||||||
@@ -9,7 +9,7 @@ export default function loadCronEvents() {
|
|||||||
|
|
||||||
for (const file of cronFiles) {
|
for (const file of cronFiles) {
|
||||||
const filePath = path.join(cronPath, file)
|
const filePath = path.join(cronPath, file)
|
||||||
const cron: Cron = require(filePath)
|
const cron: ICron = require(filePath)
|
||||||
|
|
||||||
const time =
|
const time =
|
||||||
cron.time.seconds + " " +
|
cron.time.seconds + " " +
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ExtendedClient as Client } from "utils/Client"
|
import { ExtendedClient as Client } from "utils/Client"
|
||||||
import { Event } from "interfaces"
|
import { IEvent } from "interfaces"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ export default function loadEvents(client: Client) {
|
|||||||
const eventFiles = fs.readdirSync(path.join(serverDir, eventDir))
|
const eventFiles = fs.readdirSync(path.join(serverDir, eventDir))
|
||||||
for (const eventFile of eventFiles) {
|
for (const eventFile of eventFiles) {
|
||||||
const eventPath = path.join(serverDir, eventDir, eventFile)
|
const eventPath = path.join(serverDir, eventDir, eventFile)
|
||||||
const event: Event = require(eventPath)
|
const event: IEvent = require(eventPath)
|
||||||
if (!event.disabled) {
|
if (!event.disabled) {
|
||||||
client.on(event.event, event.execute)
|
client.on(event.event, event.execute)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
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"
|
||||||
import { embedColor } from "config/options"
|
import { embedColor } from "config/options"
|
||||||
import { Modal } from "interfaces"
|
import { IModal } from "interfaces"
|
||||||
import { Events } from "discord.js"
|
import { Events } from "discord.js"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import fs from "fs"
|
import fs from "fs"
|
||||||
@@ -14,7 +14,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
|
|||||||
|
|
||||||
for (const file of modalFiles) {
|
for (const file of modalFiles) {
|
||||||
const filePath = path.join(modalPath, file)
|
const filePath = path.join(modalPath, file)
|
||||||
const modal: Modal = require(filePath)
|
const modal: IModal = require(filePath)
|
||||||
|
|
||||||
if ("name" in modal && "execute" in modal) {
|
if ("name" in modal && "execute" in modal) {
|
||||||
client.modals.set(modal.name, modal)
|
client.modals.set(modal.name, modal)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import fetch from "axios"
|
import fetch from "axios"
|
||||||
import env from "utils/Env"
|
import env from "utils/Env"
|
||||||
import { Player, PlayerData } from "interfaces"
|
import { IPlayer, IPlayerData } from "interfaces"
|
||||||
import { Guild, GuildData } from "interfaces"
|
import { IGuild, IGuildData } 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/"
|
||||||
@@ -44,8 +44,8 @@ async function getIGN(uuid: string): Promise<string | null> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getPlayer(uuid: string): Promise<PlayerData | null> {
|
async function getPlayer(uuid: string): Promise<IPlayerData | null> {
|
||||||
const playerReq: Player = await fetch(hypixel, {
|
const playerReq: IPlayer = await fetch(hypixel, {
|
||||||
params: {
|
params: {
|
||||||
uuid: uuid
|
uuid: uuid
|
||||||
},
|
},
|
||||||
@@ -61,10 +61,10 @@ async function getPlayer(uuid: string): Promise<PlayerData | null> {
|
|||||||
return playerReq.data.player
|
return playerReq.data.player
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getGuild(query: string, type?: GuildQueryType): Promise<GuildData | null> {
|
async function getGuild(query: string, type?: GuildQueryType): Promise<IGuildData | null> {
|
||||||
const reqType = type ? type : "player"
|
const reqType = type ? type : "player"
|
||||||
|
|
||||||
const guildReq: Guild = await fetch(guild, {
|
const guildReq: IGuild = await fetch(guild, {
|
||||||
params: {
|
params: {
|
||||||
[reqType]: query
|
[reqType]: query
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user