Skip to content

Commit

Permalink
fix: heap size
Browse files Browse the repository at this point in the history
  • Loading branch information
mezotv committed Jul 15, 2024
1 parent 32a5cf2 commit 0362d98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Would You is a popular Discord bot that allows you to play the classic game of Would You Rather with your friends!",
"main": "dist/cluster.js",
"scripts": {
"start": "node --enable-source-maps --max-old-space-size=12288 dist/cluster.js",
"start": "node --enable-source-maps --max-old-space-size=6000 dist/cluster.js",
"dev": "tsc && pnpm run copy-files && node --enable-source-maps dist/cluster.js",
"build": "tsc && pnpm run copy-files",
"copy-files": "copyfiles -u 1 src/**/*.ttf src/**/*.png src/**/*.psd dist/",
Expand Down Expand Up @@ -65,4 +65,4 @@
"prettier": "^3.2.5",
"typescript": "^5.4.5"
}
}
}
1 change: 1 addition & 0 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const manager = new ClusterManager(`${__dirname}/index.js`, {
totalShards: "auto",
mode: "process",
token: process.env.TOKEN,
execArgv: ["--max-old-space-size=6000"],
});

manager.on("clusterCreate", (cluster) => {
Expand Down

0 comments on commit 0362d98

Please sign in to comment.