Added dprint and formatted file to it
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
)
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { IEvent } from "interfaces"
|
||||
import { Message } from "discord.js"
|
||||
import { IEvent } from "interfaces"
|
||||
|
||||
export default {
|
||||
name: "ur mom",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user