Added dprint and formatted file to it

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-09-06 22:57:15 +02:00
parent 55e1cf7cdf
commit f389209e21
106 changed files with 398 additions and 395 deletions

View File

@@ -1,9 +1,9 @@
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options.js"
import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "config/options.js"
import { TextChannel } from "discord.js"
import { ICron, IGuildData } from "interfaces"
import color from "utils/functions/colors.js"
import { getGuild, getIGN } from "utils/Hypixel.js"
import { ICron, IGuildData } from "interfaces"
import { client } from "utils/Illegitimate.js"
import { TextChannel } from "discord.js"
async function guildWeekly() {
const channel = client.channels.cache.get(guildLogChannel) as TextChannel
@@ -22,7 +22,7 @@ async function guildWeekly() {
const guild = (await getGuild(hypixelGuildID, "id")) as IGuildData
const guildMembersList: string[] = []
const topWeeklyMembers: { name: string; value: string; inline: boolean }[] = []
const topWeeklyMembers: { name: string, value: string, inline: boolean }[] = []
const guildName = guild.name
const guildMembers = guild.members
@@ -44,9 +44,7 @@ async function guildWeekly() {
guildMembersList.push("**#" + position + " " + ign + ":** `" + gexp + "`")
}
const list = Array.from({ length: sliceSize }, (_, i) =>
guildMembersList.slice(i * sliceSize, (i + 1) * sliceSize)
)
const list = Array.from({ length: sliceSize }, (_, i) => guildMembersList.slice(i * sliceSize, (i + 1) * sliceSize))
list.forEach((item, index) => {
if (item.length === 0) return

View File

@@ -1,5 +1,5 @@
import { GuildMember, userMention } from "discord.js"
import { embedColor } from "config/options.js"
import { GuildMember, userMention } from "discord.js"
import { IEvent } from "interfaces"
import logToChannel from "utils/functions/logtochannel.js"

View File

@@ -1,6 +1,6 @@
import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js"
import color from "utils/functions/colors.js"
import { ButtonInteraction, ChatInputCommandInteraction } from "discord.js"
import { IEvent } from "interfaces"
import color from "utils/functions/colors.js"
export default {
name: "logBtnsCmds",
@@ -22,9 +22,9 @@ export default {
console.log(
color(
interaction.user.username + "#" +
interaction.user.discriminator + " ran " +
interaction.commandName + " " +
subcommand,
interaction.user.discriminator + " ran " +
interaction.commandName + " " +
subcommand,
"pink"
)
)
@@ -32,8 +32,8 @@ export default {
console.log(
color(
interaction.user.username + "#" +
interaction.user.discriminator + " ran " +
interaction.commandName,
interaction.user.discriminator + " ran " +
interaction.commandName,
"pink"
)
)
@@ -44,8 +44,8 @@ export default {
console.log(
color(
interaction.user.username + "#" +
interaction.user.discriminator + " clicked " +
interaction.customId,
interaction.user.discriminator + " clicked " +
interaction.customId,
"pink"
)
)

View File

@@ -1,5 +1,5 @@
import { IEvent } from "interfaces"
import { Message } from "discord.js"
import { IEvent } from "interfaces"
export default {
name: "ur mom",

View File

@@ -1,6 +1,6 @@
import logToChannel from "utils/functions/logtochannel.js"
import { IEvent } from "interfaces"
import { embedColor } from "config/options.js"
import { IEvent } from "interfaces"
import logToChannel from "utils/functions/logtochannel.js"
export default {
name: "sendonlinemessage",