Skip to content

Commit

Permalink
Request API key after failed API Key request
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Dec 17, 2021
1 parent e078e29 commit 5e6424f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function setup() {
config = JSON.parse(file);
} catch (err) {
// Probably no file
console.log('No config file fount... Starting from scratch!');
console.log('No config file found... Starting from scratch!');
}
if(config.ftc_ip) {
const input = await prompt(`Scorekeeper IP is '${config.ftc_ip}' (Y/n)`, false);
Expand Down Expand Up @@ -102,6 +102,7 @@ async function setup() {
console.log('API Key Approved');
} else {
console.warn('API Key Auth denied :(. This may cause problems with polling!');
await blockingApiKeyReq();
}
}
} catch {
Expand Down

0 comments on commit 5e6424f

Please sign in to comment.