Updated event layout
This commit is contained in:
@@ -2,16 +2,15 @@ import { embedColor } from "~/config/options.js"
|
||||
import { IEvent } from "~/interfaces"
|
||||
import logToChannel from "~/utils/Functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
event: "ready",
|
||||
execute() {
|
||||
if (process.env.NODE_ENV === "dev") return
|
||||
const event: IEvent<"ready"> = () => {
|
||||
if (process.env.NODE_ENV === "dev") return
|
||||
|
||||
logToChannel("online", {
|
||||
embeds: [{
|
||||
description: "Bot is online!",
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
}
|
||||
} as IEvent<"ready">
|
||||
logToChannel("online", {
|
||||
embeds: [{
|
||||
description: "Bot is online!",
|
||||
color: embedColor
|
||||
}]
|
||||
})
|
||||
}
|
||||
|
||||
export default event
|
||||
|
||||
Reference in New Issue
Block a user