Updated all files based on eslintrc
This commit is contained in:
@@ -12,7 +12,7 @@ export = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName("help")
|
||||
.setDescription("List's all commands usable by a member")
|
||||
.setDMPermission(true),
|
||||
.setDMPermission(false),
|
||||
|
||||
async execute(interaction, client) {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
@@ -72,9 +72,7 @@ export = {
|
||||
fields: commandList,
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction?.guild?.iconURL({
|
||||
forceStatic: true,
|
||||
})!,
|
||||
url: interaction.guild!.iconURL({ forceStatic: true, })!,
|
||||
},
|
||||
footer: {
|
||||
icon_url: footerIcon!,
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function updateDiscordRoles(
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
{
|
||||
description: `You do not have permission to use this command.`,
|
||||
description: "You do not have permission to use this command.",
|
||||
color: embedColor,
|
||||
},
|
||||
],
|
||||
@@ -196,7 +196,7 @@ export async function updateDiscordRoles(
|
||||
await interaction.editReply({
|
||||
embeds: [
|
||||
{
|
||||
description: `Successfully updated all roles.`,
|
||||
description: "Successfully updated all roles.",
|
||||
color: embedColor,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -4,5 +4,6 @@ export default interface Autocomplete {
|
||||
name: string
|
||||
description: string
|
||||
type: "autocomplete"
|
||||
execute: (interaction: AutocompleteInteraction) => Promise<void>
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute: (interacion: AutocompleteInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -4,5 +4,6 @@ export default interface Button {
|
||||
name: string
|
||||
description: string
|
||||
type: "button"
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute: (interaction: ButtonInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -12,8 +12,6 @@ export default interface Command {
|
||||
"addSubcommand" | "addSubcommandGroup" | "addIntegerOption"
|
||||
>
|
||||
subcommands?: boolean
|
||||
execute: (
|
||||
interaction: ChatInputCommandInteraction,
|
||||
client: Client,
|
||||
) => Promise<void>
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute: ( interaction: ChatInputCommandInteraction, client: Client,) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -9,5 +9,6 @@ export default interface ContextMenu {
|
||||
type: "contextmenu"
|
||||
dev?: boolean
|
||||
data: ContextMenuCommandBuilder
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute: (interaction: ContextMenuCommandInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -5,5 +5,6 @@ export default interface Event {
|
||||
description: string
|
||||
type: "event"
|
||||
event: keyof ClientEvents
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute(...args: any[]): void
|
||||
}
|
||||
|
||||
@@ -4,5 +4,6 @@ export default interface Modal {
|
||||
name: string
|
||||
description: string
|
||||
type: "modal"
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
execute: (interaction: ModalSubmitInteraction) => Promise<void>
|
||||
}
|
||||
|
||||
@@ -8,8 +8,6 @@ const client = new Client()
|
||||
const redis = new Redis(env.prod.redisURI!)
|
||||
|
||||
class Bot {
|
||||
constructor() {}
|
||||
|
||||
async start() {
|
||||
init()
|
||||
client.start()
|
||||
|
||||
@@ -10,14 +10,14 @@ function getExpForLevel(level: number): number {
|
||||
}
|
||||
|
||||
switch (respectedLevel) {
|
||||
case 1:
|
||||
return 500
|
||||
case 2:
|
||||
return 1000
|
||||
case 3:
|
||||
return 2000
|
||||
case 4:
|
||||
return 3500
|
||||
case 1:
|
||||
return 500
|
||||
case 2:
|
||||
return 1000
|
||||
case 3:
|
||||
return 2000
|
||||
case 4:
|
||||
return 3500
|
||||
}
|
||||
return 5000
|
||||
}
|
||||
|
||||
@@ -12,10 +12,10 @@ function getLevel(exp: number): number {
|
||||
return exp <= 1
|
||||
? 1
|
||||
: Math.floor(
|
||||
1 +
|
||||
1 +
|
||||
REVERSE_PQ_PREFIX +
|
||||
Math.sqrt(REVERSE_CONST + GROWTH_DIVIDES_2 * exp),
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
function hypixelLevel(exp: number): number {
|
||||
|
||||
Reference in New Issue
Block a user