-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (20 loc) · 751 Bytes
/
index.js
File metadata and controls
25 lines (20 loc) · 751 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
25
const { Client } = require('discord.js-selfbot-v13');
const config = require('./config.json');
const voiceHandler = require('./handlers/voiceHandler');
const autoReactHandler = require('./handlers/autoReactHandler');
const logger = require('./utils/logger');
const client = new Client({ checkUpdate: false });
if (config.voice.enabled) voiceHandler(client, config);
if (config.auto_react.enabled) autoReactHandler(client, config);
client.on('ready', () => {
logger.success(`🟢 ${client.user.tag}`);
});
client.login(config.token).catch(err => {
logger.error('Login failed:', err);
process.exit(1);
});
process.on('SIGINT', () => {
client.destroy();
logger.info('Bot shutdown complete');
process.exit();
});