First Setup

This commit is contained in:
CorwinDev committed 2022-07-30 16:09:49 +02:00
commit 900a4f65da
11 files changed
+2244

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
// Create discord.js client
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
GatewayIntentBits.DirectMessages,
]
});
// Set intents
client.on('ready', () => {
console.log('Bot is ready!');
});
// Login
client.login(process.env.BOT_TOKEN);