Updated all color vars to new one

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-30 11:52:52 +01:00
parent 1d3b77ae35
commit 27bff1a007
60 changed files with 61 additions and 137 deletions

View File

@@ -1,4 +1,4 @@
import { hypixelGuildID, guildLogChannel, color, devMessage } from "config/options"
import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options"
import colorLog from "utils/functions/colors"
import { getGuild, getIGN } from "utils/Hypixel"
import { Cron, GuildData } from "interfaces"
@@ -13,8 +13,6 @@ async function guildWeekly() {
return
}
const embedColor = Number(color.replace("#", "0x"))
const message = await channel.send({
embeds: [{
description: "Starting to fetch guild data...",

View File

@@ -1,5 +1,5 @@
import { GuildMember, userMention } from "discord.js"
import { color } from "config/options"
import { embedColor } from "config/options"
import { Event } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
@@ -10,8 +10,6 @@ export = {
execute(member: GuildMember) {
if (process.env.NODE_ENV === "dev") return
const embedColor = Number(color.replace("#", "0x"))
logToChannel("bot", {
embeds: [{
title: "New Member",

View File

@@ -1,6 +1,6 @@
import logToChannel from "utils/functions/logtochannel"
import { Event } from "interfaces"
import { color } from "config/options"
import { embedColor } from "config/options"
export = {
name: "sendonlinemessage",
@@ -10,8 +10,6 @@ export = {
execute() {
if (process.env.NODE_ENV === "dev") return
const embedColor = Number(color.replace("#", "0x"))
logToChannel("online", {
embeds: [{
description: "Bot is online!",

View File

@@ -1,5 +1,5 @@
import { userMention, channelMention, VoiceState } from "discord.js"
import { color } from "config/options"
import { embedColor } from "config/options"
import { Event } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
@@ -11,7 +11,6 @@ export = {
execute(oldState: VoiceState, newState: VoiceState) {
if (process.env.NODE_ENV === "dev") return
const embedColor = Number(color.replace("#", "0x"))
const oldChannel = oldState.channel
const newChannel = newState.channel