-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (20 loc) · 786 Bytes
/
Copy pathindex.js
File metadata and controls
24 lines (20 loc) · 786 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
const { Client, GatewayIntentBits, Partials, ActivityType } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildEmojisAndStickers,
],
partials: [Partials.Message, Partials.Reaction],
presence: { status: 'online', activities: [{ name: 'over Jexactyl.com', type: ActivityType.Watching }] }
});
client.once('ready', () => {
console.log('Jexactyl Online... Preparing for World Domination!');
});
client.on('messageCreate', async (message) => {
if (message.author.bot) return;
require('./validation.js')(message);
});
client.login(process.env.TOKEN);