Files
illegitimate-bot/src/events/server/ready/sendOnlineMessage.ts
2024-01-18 15:34:55 +01:00

25 lines
597 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