-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBot.ts
More file actions
27 lines (23 loc) · 726 Bytes
/
Bot.ts
File metadata and controls
27 lines (23 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Client } from "discord.js";
import * as dotenv from "dotenv";
import { FAQCommand } from "./commands/faq";
import { TryCommand } from "./commands/general";
import { UrlCommand } from "./commands/link";
import onInteraction from "./events/onInteraction";
import onReady from "./events/onReady";
import onMessageCreate from "./events/onMessageCreate";
import { Command } from "./structures/Command";
dotenv.config();
const client = new Client({ intents: [
'MessageContent',
'GuildMessages',
'Guilds'
] });
const token = process.env.token;
export const Commands: Command[] = [
FAQCommand, TryCommand, UrlCommand
]
onReady(client);
onInteraction(client);
onMessageCreate(client);
client.login(token);