First Setup
This commit is contained in:
commit
900a4f65da
11 files changed
+2244
No files matched your search
@@ -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);
|
||||
Reference in new issue
Block a user