This repository has been archived by the owner on Sep 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
26 lines (20 loc) · 1.51 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
/*
* CfxBot Bot for Discord
* Copyright (C) 2022 Matthéo Le Fur (Kamion#1323)
* This software is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
* For more information, see README.md and LICENSE
*/
const time = new Date();
const colors = require('colors');
console.log(' '.bold.blue + '\n' + ' _/_/_/ _/_/ _/_/_/_/_/ _/_/_/ _/_/_/_/ _/ _/ '.bold.blue + '\n' + ' _/ _/ _/ _/ _/ _/ _/ _/ _/ '.bold.blue + '\n' + ' _/_/_/ _/ _/ _/ _/ _/_/_/ _/ '.bold.blue + '\n'+' _/ _/ _/ _/ _/ _/ _/ _/ _/ '.bold.blue + '\n' + '_/_/_/ _/_/ _/ _/ _/_/_/ _/ _/ _/ '.bold.blue + '\n' + ' '.bold.blue + '\n' + ' Created by ! Kamion#1323 '.bold.blue + '\n' + ' '.bold.blue);
require('dotenv').config();
const { ShardingManager } = require('discord.js');
const manager = new ShardingManager('./bot.js', {
totalShards: 'auto',
token: process.env['BotToken'],
respawn: true,
});
manager.on('shardCreate', (shard) => {
//console.log(`Launched shard ${shard.id + 1}/${manager.totalShards}`);
});
manager.spawn({ amount: this.totalShards, delay: 500, timeout: -1 });