Skip to content

Commit

Permalink
Directly import process.exit
Browse files Browse the repository at this point in the history
  • Loading branch information
JstnMcBrd committed Jun 23, 2024
1 parent 99039aa commit f88ae8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/commands/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { exit } from 'node:process';

import type { Client } from 'discord.js';

import type { CommandHandler } from './CommandHandler.js';
Expand Down Expand Up @@ -55,7 +57,7 @@ export async function syncCommands(client: Client<true>): Promise<void> {

if (!areCommandsInSync(deployedCommands, localCommands)) {
error('Deployed commands are outdated. Please run the deployment script to update them.');
process.exit(1);
exit(1);
}

deployedCommands.forEach(command => getCommandHandler(command.name)?.setId(command.id));
Expand Down
2 changes: 1 addition & 1 deletion src/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const version = getVersion();
export const githubURL = new URL('https://github.com/JstnMcBrd/discord-delphi');

/** When this code was last changed. */
export const lastUpdated = new Date(2024, 5, 21, 3, 30);
export const lastUpdated = new Date(2024, 5, 23, 15, 0);
// Year, month (0-11), day of month, hour (0-23), minutes

/** How fast the bot sends messages (in characters per second). */
Expand Down

0 comments on commit f88ae8d

Please sign in to comment.