From 92e43777fcd4160aae4ffdaf25f7995b3c128400 Mon Sep 17 00:00:00 2001 From: rainydevzz Date: Thu, 20 Mar 2025 14:19:59 -0700 Subject: [PATCH] uptime part 2 --- src/events/ready.ts | 2 ++ src/utils/uptime-loop.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/ready.ts b/src/events/ready.ts index 1b04f76..71f97d0 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -2,6 +2,7 @@ import { Client, Discord, On, type ArgsOf } from "discordx"; import { underageCheck } from "../utils/underage"; import { bumpRemind } from "../utils/bump"; import {stat, mkdir} from "fs/promises"; +import { uptimeLoop } from "../utils/uptime-loop"; @Discord() export class Ready { @@ -21,5 +22,6 @@ export class Ready { underageCheck(members); } bumpRemind(client); + uptimeLoop(client); } } diff --git a/src/utils/uptime-loop.ts b/src/utils/uptime-loop.ts index 6fa5251..1d601d1 100644 --- a/src/utils/uptime-loop.ts +++ b/src/utils/uptime-loop.ts @@ -10,7 +10,7 @@ export const uptimeLoop = async (client: Client) => { ) as TextChannel; const msg = await channel.messages.fetch(Bun.env.UPTIME_MESSAGE); await msg.edit( - `bot is up, last ping: | if the ping was more than 1 minute ago, cosmic needs to check the bot lol :3`, + `bot is up, last ping: | if the ping was more than 1 minute ago, cosmic needs to check the bot lol :3`, ); } };