Skip to content

Commit

Permalink
Update skyv-restarter.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatKoffe committed Nov 30, 2023
1 parent 9c7f96d commit 6fe1b27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skyv-restarter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const args = process.argv.slice(2);
const token = args.find((arg) => arg.startsWith('--token='))?.split('=')[1];
const serverId = args.find((arg) => arg.startsWith('--server='))?.split('=')[1];

console.log('token', token);
console.log('serverId', serverId);

if (!token || !serverId) {
console.log('Missing arguments, exiting.');
process.exit(1);
Expand Down

0 comments on commit 6fe1b27

Please sign in to comment.