Added dprint and formatted file to it
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "utils/Hypixel.js"
|
||||
|
||||
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
@@ -118,8 +118,7 @@ export default async function guildInfo(interaction: ChatInputCommandInteraction
|
||||
const guildCreatedMinute = guildCreated.getMinutes()
|
||||
const guildCreatedSecond = guildCreated.getSeconds()
|
||||
|
||||
const guildCreatedTime =
|
||||
guildCreatedDate + "." +
|
||||
const guildCreatedTime = guildCreatedDate + "." +
|
||||
guildCreatedMonth + "." +
|
||||
guildCreatedYear + " " +
|
||||
guildCreatedHour + ":" +
|
||||
@@ -132,7 +131,9 @@ export default async function guildInfo(interaction: ChatInputCommandInteraction
|
||||
const guildRanks = guildRanksUnsorted.map(r => "**➺ " + r.name + "** `[" + r.tag + "]`").join("\n")
|
||||
|
||||
const allGuildMembersWeeklyXP = guildMembers.map(member => member.expHistory)
|
||||
const guildMembersWeeklyXP = allGuildMembersWeeklyXP.map(member => { return Object.values(member).reduce((a, b) => a + b, 0) })
|
||||
const guildMembersWeeklyXP = allGuildMembersWeeklyXP.map(member => {
|
||||
return Object.values(member).reduce((a, b) => a + b, 0)
|
||||
})
|
||||
|
||||
const totalGuildMembersWeeklyXPUnformatted = guildMembersWeeklyXP.reduce((a, b) => a + b, 0)
|
||||
const totalGuildMembersWeeklyXP = new Intl.NumberFormat("en-US").format(totalGuildMembersWeeklyXPUnformatted)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
|
||||
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
@@ -118,8 +118,7 @@ export default async function guildMember(interaction: ChatInputCommandInteracti
|
||||
const guildMemberJoinMinutes = guildMemberJoinTime.getMinutes()
|
||||
const guildMemberJoinSeconds = guildMemberJoinTime.getSeconds()
|
||||
|
||||
const guildMemberJoin =
|
||||
guildMemberJoinDate + "." +
|
||||
const guildMemberJoin = guildMemberJoinDate + "." +
|
||||
guildMemberJoinMonth + "." +
|
||||
guildMemberJoinYear + " " +
|
||||
guildMemberJoinHours + ":" +
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel.js"
|
||||
import { embedColor, devMessage } from "config/options.js"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
import { redis } from "utils/Illegitimate.js"
|
||||
|
||||
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
@@ -143,8 +143,8 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
|
||||
amount = 1
|
||||
}
|
||||
|
||||
type GuildTopData = { ign: string; uuid: string }[]
|
||||
type NewList = { name: string; value: string; inline: boolean }[]
|
||||
type GuildTopData = { ign: string, uuid: string }[]
|
||||
type NewList = { name: string, value: string, inline: boolean }[]
|
||||
|
||||
let cacheStatus: boolean
|
||||
let guildData: GuildTopData = []
|
||||
|
||||
Reference in New Issue
Block a user