Tentative de récup d'info de jeu depuis instance

This commit is contained in:
Zachary Guénot
2023-05-28 22:10:15 +02:00
parent d02dd5bace
commit 7593c183ba
6 changed files with 82 additions and 42 deletions

View File

@@ -4,7 +4,6 @@ module.exports = (async (SESSIONID) => {
return await axios.post(`${process.env.AMP_HOST}/API/${__filename.split('utilsAMP/')[1].split('.js')[0]}`, {
SESSIONID
}).then(response => {
console.log(response.data)
if (!response.data.result) return { status: 'fail', data: response.data }
return { status: 'success', data: response.data }
}).catch(error => {