-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from alanfilho184/dev
v4.13.0 - Sharding
- Loading branch information
Showing
14 changed files
with
814 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": true, | ||
"arrowParens": "avoid" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
require("colors") | ||
require("./src/resources/scripts/logs") | ||
require('dotenv').config() | ||
const { ShardingManager } = require('discord.js') | ||
|
||
const Client = require('./src/client') | ||
const client = new Client() | ||
client.login() | ||
// const Client = require('./src/client') | ||
// const client = new Client() | ||
// client.login() | ||
|
||
const manager = new ShardingManager('./src/client.js', { token: process.env.TOKEN, totalShards: 2, mode: 'worker' }); | ||
|
||
manager.on('shardCreate', shard => console.log(`Launched shard ${shard.id}`)); | ||
|
||
manager.spawn(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.