Skip to content

Commit

Permalink
Merge pull request #33 from alanfilho184/dev
Browse files Browse the repository at this point in the history
v4.13.0 - Sharding
  • Loading branch information
alanfilho184 authored Aug 12, 2024
2 parents 7ea1661 + dca50f3 commit 1203324
Show file tree
Hide file tree
Showing 14 changed files with 814 additions and 504 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.3",
"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 1203324

Please sign in to comment.