-
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.
- Loading branch information
1 parent
8f71e9e
commit 32c34b9
Showing
6 changed files
with
3,781 additions
and
2,900 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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx commitlint --config .commitlintrc.json --edit $HUSKY_GIT_PARAMS |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,31 @@ | ||
const { ShardingManager } = require('discord.js'); | ||
const path = require('path'); | ||
|
||
const manager = new ShardingManager(path.join(__dirname, 'main.js'), { token: process.env.DISCORD_TOKEN, totalShards: 'auto' }); | ||
|
||
manager.on('shardCreate', shard => console.log(`Launched shard ${shard.id}`)); | ||
|
||
manager.on('shardCreate', shard => { | ||
shard.on('reconnecting', () => { | ||
console.log(`Reconnecting shard: [${shard.id}]`); | ||
}); | ||
|
||
shard.on('spawn', () => { | ||
console.log(`Spawned shard: [${shard.id}]`); | ||
}); | ||
|
||
shard.on('ready', () => { | ||
console.log(` Shard [${shard.id}] is ready`); | ||
}); | ||
|
||
shard.on('death', () => { | ||
console.log(`Died shard: [${shard.id}]`); | ||
}); | ||
|
||
shard.on('error', err => { | ||
console.log(`Error in [${shard.id}] with : ${err} `); | ||
shard.respawn(); | ||
}); | ||
}); | ||
|
||
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.