all repos — stealth-developers @ 150c6916c5949d48883c1e2f51b092b07fb0669c

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