Added new logger
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { TextChannel } from "discord.js"
|
||||
import { devMessage, embedColor, guildLogChannel, hypixelGuildID } from "~/config/options.js"
|
||||
import { ICron, IGuildData } from "~/interfaces"
|
||||
import { color } from "~/utils/Functions/colors.js"
|
||||
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
|
||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
||||
import { client } from "~/utils/Illegitimate.js"
|
||||
import { log } from "~/utils/Logger.js"
|
||||
|
||||
async function guildWeekly() {
|
||||
const channel = client.channels.cache.get(guildLogChannel) as TextChannel
|
||||
|
||||
if (!channel) {
|
||||
console.log(color("Guild log channel not found", "red"))
|
||||
log("Guild log channel not found", "error")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user