Updated much

This commit is contained in:
CorwinDev committed 2022-08-05 14:59:15 +02:00
1 parent 93b118f874
commit b2cd1691af
21 files changed
+1479 -172

No files matched your search

+5 -3
View File
@@ -3,8 +3,6 @@ const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildPresences,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.GuildMessageReactions,
GatewayIntentBits.GuildMessageTyping,
@@ -12,10 +10,14 @@ const client = new Client({
]
});
client.config = require('../config');
client.config = require('./config');
// Set intents
client.on('ready', () => {
console.log('Bot is ready!');
// Log server count
setTimeout(() => {
console.log(`${client.guilds.cache.size} servers`);
}, 1000);
});
// Login
client.login(client.config.bot.token);