-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
39 lines (35 loc) · 925 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
const { Client } = require("discord.js");
const { token, guildId } = require("./config");
const client = new Client({
intents: ["GUILDS", "GUILD_MEMBERS", "GUILD_MESSAGES", "DIRECT_MESSAGES"],
});
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);
/**
* @INFO
* Bot Coded by iRed#1330 | https://github.com/iRed-Github/Verification-BOT
* @INFO
* Join iDK Development | https://dsc.gg/idk-development
* @INFO
* Please mention Her / iDK Development, when using this Code!
* @INFO
*/