all repos — stealth-developers @ 098dacc90451b4a3f29ea77a1095234bdd1d50ed

apps/bot/src/client.ts (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
import { KLogger } from "$/logger";
import { Kitten } from "@purrkit/router";
import { Client, GatewayIntentBits } from "discord.js";

export const client = new Client({
	intents: [
		GatewayIntentBits.DirectMessages,
		GatewayIntentBits.GuildMessages,
		GatewayIntentBits.Guilds,
		GatewayIntentBits.MessageContent,
	],
});

export const kitten = new Kitten(client, {
	logger: new KLogger(),
});