Updated much
This commit is contained in:
1 parent
93b118f874
commit
b2cd1691af
21 files changed
+1479
-172
No files matched your search
@@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
"mongodb": "mongodb+srv://root:@cluster0.jo9hd.mongodb.net/?retryWrites=true&w=majority",
|
||||
"bot": {
|
||||
token: "ODcwMDAxMjM0NTgzNjIxNzEz.GHwzsE.tvU0FJG9c7HFkLaqDMqp6wTaSBZbFdH6wuaLO0",
|
||||
channels: {
|
||||
login: "868065455628234780",
|
||||
vote: "937643610541793300",
|
||||
error: "1003947531543269507",
|
||||
}
|
||||
},
|
||||
}
|
||||
+5
-3
@@ -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);
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "bot",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
Reference in new issue
Block a user