all repos — stealth-developers @ 433ff54f586cb201794a95cbd29d81ccdf4fabc5

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