all repos — stealth-developers @ 2c1d94cc8c22d2f411f9b6449232111101a7113c

apps/bot/src/events/index.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
import { client } from "@/client";
import { getGuildActor } from "f/guild-actor";

client.on("clientReady", async () => {
	const guilds = client.guilds.fetch();
	if (!guilds) return;

	for (const guild of (await guilds).values()) await getGuildActor(guild);
});