forked from GlaceYT/Distube-Music-Bot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
35 lines (25 loc) · 1.61 KB
/
index.js
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
26
27
28
29
30
31
32
33
34
const config = require('./config.js');
if(config.shardManager.shardStatus == true){
const { ShardingManager } = require('discord.js');
const manager = new ShardingManager('./bot.js', { token: config.TOKEN || process.env.TOKEN });
manager.on('shardCreate', shard => console.log(`Launched shard ${shard.id}`));
manager.spawn();
} else {
require("./bot.js")
}
/*
________.__ _____.___.___________
/ _____/| | _____ ____ ____ \__ | |\__ ___/
/ \ ___| | \__ \ _/ ___\/ __ \ / | | | |
\ \_\ \ |__/ __ \\ \__\ ___/ \____ | | |
\______ /____(____ /\___ >___ > / ______| |____|
\/ \/ \/ \/ \/
╔════════════════════════════════════════════════════════════════════════╗
║ ║
║ ## Created by GlaceYT! ║
║ ## Feel free to utilize any portion of the code ║
║ ## DISCORD : https://discord.com/invite/xQF9f9yUEM ║
║ ## YouTube : https://www.youtube.com/@GlaceYt ║
║ ║
╚════════════════════════════════════════════════════════════════════════╝
*/