-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
23 lines (20 loc) · 837 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
const { Client, Intents } = require('discord.js'); // Importing Client and Intent from Discord.js
const client = new Client({
intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MEMBERS]
}); // Constructing Client
const { token } = require('./config.json'); // Importing token from Config.json
const welcome = require('./welcome'); // Importing guildMemberAdd event from welcome.
client.on('ready', () => {
welcome(client);
client.user?.setPresence({
status: "idle" || "dnd",
activities: [
{
name: "Ahad#3257" || "Watching New Members",
type: "LISTENING" || "WACTHING"
},
],
}); // Setting Status
console.log("Listening on https://www.itscruel.cf\nMade by Ahad#3257\nJoin https://discord.gg/Ncsc5pRNgf for help."); // Please don't remove this.
});
client.login(token);