Skip to content

Commit

Permalink
v4.13.0 - Sharding
Browse files Browse the repository at this point in the history
  • Loading branch information
alanfilho184 committed Aug 12, 2024
1 parent 8693ada commit b77e949
Show file tree
Hide file tree
Showing 14 changed files with 805 additions and 507 deletions.
10 changes: 10 additions & 0 deletions .prettierrc.json
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"
}
13 changes: 10 additions & 3 deletions index.js
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();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kami",
"version": "4.12.4",
"version": "4.13.0",
"description": "Um BOT para Discord com foco em ajudar em mesas de RPG online, tendo suas principais funções criar fichas e rolar dados.",
"main": "index.js",
"scripts": {
Expand Down
Loading

0 comments on commit b77e949

Please sign in to comment.