Skip to content

Commit

Permalink
handle sigint/sigterm
Browse files Browse the repository at this point in the history
  • Loading branch information
phenylshima committed Nov 20, 2023
1 parent 7ae8152 commit 790b563
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ client.on(Events.InteractionCreate, async (interaction) => {
}
});

process.on("SIGINT", () => process.exit(0));
process.on("SIGTERM", () => process.exit(0));

void client.login();

0 comments on commit 790b563

Please sign in to comment.