script/pushCommands: make sure the script exits

This commit is contained in:
Wroclaw 2023-09-30 14:47:10 +02:00
parent 4729f7f563
commit a05047ab7d

View file

@ -37,6 +37,8 @@ const rest = new REST().setToken(config.tokens.Discord);
); );
} }
console.log("Refreshed successfully"); console.log("Refreshed successfully");
process.exit(0);
})().catch( e => { })().catch( e => {
console.error(e); console.error(e);
process.exit(1);
}); });