Files
illegitimate-bot/src/events/server/ready/sendOnlineMessage.ts
2024-01-19 21:36:01 +01:00

25 lines
593 B
TypeScript

import logToChannel from "utils/functions/logtochannel"
import { Event } from "interfaces"
import { color } from "config/options.json"
export = {
name: "sendonlinemessage",
description: "send an online message",
event: "ready",
execute() {
if (process.env.NODE_ENV === "dev") return
const embedColor = Number(color.replace("#", "0x"))
logToChannel("online", {
embeds: [
{
description: "Bot is online!",
color: embedColor
}
]
})
}
} as Event