Skip to content

Commit

Permalink
Change to setInterval bc node-cron issue with setPresence
Browse files Browse the repository at this point in the history
  • Loading branch information
RainyXeon committed Dec 6, 2023
1 parent 0c85f3d commit 2061fc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/events/client/ready.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Manager } from "../../manager.js";
import { DeployService } from "../../services/DeployService.js";
import cron from "node-cron";

export default class {
async execute(client: Manager) {
Expand All @@ -16,7 +14,7 @@ export default class {
`with ${channels} channels! | /filter nightcore`,
];

cron.schedule("0 */1 * * * *", async () => {
setInterval(() => {
client.user!.setPresence({
activities: [
{
Expand All @@ -28,6 +26,6 @@ export default class {
],
status: "online",
});
});
}, 15000)
}
}

0 comments on commit 2061fc6

Please sign in to comment.