async function get_id_r6() {
try {
console.log('inside get_id_r6');
const r6_id = await r6.getId("uplay", args[1]).then(el => { console.log(`within .then ${el}`); return el[0].id; });
console.log("shit works")
message.channel.send("Your uplay name has been saved !\nYou don't need to change it even if you change your ingame name !");
} catch (e) {
message.reply("\nis " + args[1] + " a correct username? (uplay only)");
console.log("error")
}
}
console.log('before call to get_id_r6');
get_id_r6(); //
console.log('after call to get_id_r6');
work flawless on pc running Visual Studio Code and node v10.16.2
however on VPS (ubuntu) also node v10.16.2
both programs just don't work on vps, the api call just does not exist
there are no errors but neither the .then clause, nor the console.log(id), nor the console.log("error") got executed
i have same newest version of r6api
there are no errors to show
very strange issue:
and
work flawless on pc running Visual Studio Code and node v10.16.2 however on VPS (ubuntu) also node v10.16.2 both programs just don't work on vps, the api call just does not exist there are no errors but neither the .then clause, nor the console.log(id), nor the console.log("error") got executed i have same newest version of r6api there are no errors to show