all repos — stealth-developers @ 212c942ae395a7b4812d0ad897c3d128b2260413

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

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

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

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