Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraInstinct0x committed Mar 2, 2024
1 parent a759ece commit c1e0d46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/

.DS_Store
# TypeScript v1 declaration files
typings/

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"moment": "^2.29.4",
"moment-duration-format": "^2.3.2",
"moment-timezone": "^0.5.39",
"mongoose": "6.8.0",
"mongoose": "^6.8.0",
"ms": "^2.1.3",
"node-fetch": "^2.6.6",
"parse-ms": "^2.1.0",
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ const shardLogs = new Discord.WebhookClient({
id: webhook.shardLogs.id,
token: webhook.shardLogs.token,
});

const manager = new Discord.ShardingManager('./src/bot.js', {
totalShards: 'auto',
token: process.env.DISCORD_TOKEN,
respawn: true
respawn: true,
shardArgs: ['--trace-warnings'],
readyTimeout: 60000 // Increase timeout to 60 seconds
});
if (process.env.TOPGG_TOKEN) {
const { AutoPoster } = require('topgg-autoposter');
Expand Down

0 comments on commit c1e0d46

Please sign in to comment.