blob: e0d55f52a3be62e13e78e56e1d9e3d94be771135 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { GatewayIntentBits, Client, Partials } from "discord.js";
import dotenv from "dotenv";
import { handleCommands } from "./commands";
import { handleListeners } from "./listeners";
dotenv.config({ path: "../../.dev.vars" });
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildVoiceStates,
GatewayIntentBits.DirectMessages,
],
partials: [Partials.Channel],
});
handleCommands(client);
handleListeners(client);
client.login(process.env.DISCORD_TOKEN);
|