forked from cosmic/scythe
1
0
Fork 0

uptime part 2

This commit is contained in:
rainydevzz 2025-03-20 14:19:59 -07:00
parent c27012da7d
commit 92e43777fc
2 changed files with 3 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -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: <t:${Date.now()}:f> | if the ping was more than 1 minute ago, cosmic needs to check the bot lol :3`,
`bot is up, last ping: <t:${Math.floor(Date.now()/1000)}:f> | if the ping was more than 1 minute ago, cosmic needs to check the bot lol :3`,
);
}
};