-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
41 lines (37 loc) · 1.04 KB
/
index.ts
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import * as discord from "discord.js";
import events from "./src/events";
import log4 from "./src/functions/log4";
require("dotenv").config();
log4.info("Starting the bot...");
const client = new discord.Client({
intents: [
discord.GatewayIntentBits.MessageContent,
discord.GatewayIntentBits.GuildMessages,
discord.GatewayIntentBits.GuildMessageReactions,
discord.GatewayIntentBits.GuildMembers,
discord.GatewayIntentBits.Guilds
],
// intents: ["Guilds", "GuildMembers", "GuildMessages", "GuildMessageReactions", "GuildMessageTyping"],
ws: {
properties: {
browser: "Discord Android"
}
},
presence: {
status: "online",
afk: true,
activities: [
{
name: "with your mother",
type: discord.ActivityType.Competing,
url: "https://qky.life"
}
]
}
});
events(client);
process.on("uncaughtException", (e) => {
log4.error("Main Proc --> ", e);
});
// log4.info(process.env.DISCORDTOKEN);
client.login(process.env.DISCORDTOKEN);