error handling : )

This commit is contained in:
2025-04-08 17:05:02 -04:00
parent 315967f885
commit 093cbc62f4
3 changed files with 16 additions and 9 deletions

View File

@@ -41,7 +41,7 @@ module.exports.self = {
const response = await fetch(url);
const data = await response.json();
config.tornid = data.player_id;
console.log('retreived player id: ' + data.player_id)
console.log(`Torn: Retrieved default ID as "${data.player_id}"`)
return(data.player_id);
} else return config.tornid;
}