-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
44 lines (38 loc) · 908 Bytes
/
index.js
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
42
43
44
//
//Coded by Trizzey (Discord: .trizzey)
//
const { Client, Intents } = require("discord.js");
const { token, guildId } = require("./config");
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.DIRECT_MESSAGES,
],
partials: ['CHANNEL'], // Required for DMs to work
});
client.on("ready", async () => {
console.log(`${client.user.tag} is Online !!`);
let guild = client.guilds.cache.get(guildId);
if (guild) {
guild.commands.set([
{
name: "ping",
description: `Check ping of bot`,
type: "CHAT_INPUT",
},
{
name: "setup",
description: `Setup the verification system`,
type: "CHAT_INPUT",
},
]);
}
// Loading
require("./verify")(client);
});
client.login(token);
//
//Coded by Trizzey (Discord: .trizzey)
//