summary refs log tree commit diff
path: root/slowcord/bot/src/index.ts
blob: 07a6aa7cfe9362f9218d9c7b426ca3e0aa790b07 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import "dotenv/config";
import Fosscord from "fosscord-gopnik";
import Bot from "./Bot";

const client = new Fosscord.Client({
	intents: ["GUILD_MESSAGES"],

	http: {
		api: process.env.ENDPOINT_API,
		cdn: process.env.ENDPOINT_CDN,
		invite: process.env.ENDPOINT_INV,
	},
});

const bot = new Bot(client);

client.on("ready", bot.onReady);

client.on("messageCreate", bot.onMessageCreate);

client.login(process.env.TOKEN);