This commit is contained in:
Louis Mazin 2025-06-17 23:57:37 +02:00
parent 586f7fd7be
commit a8f6408111
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const update = async (headers,numbers,client,token) => {
players = response.data["currentplayernum"];
})
.catch((error) => {
console.log("Erreur lors de l'appel à l'api pterodactyl (serveur injoignable)");
console.log("Erreur lors de l'appel à l'api palworld (serveur injoignable)");
players = "0";
});

View File

@ -70,5 +70,5 @@ client.on(Events.InteractionCreate, async interaction => {
client.login(token);
setInterval(()=>{update(headers,numbers,client,palworldToken)}, 3000);
setInterval(()=>{update(headers,numbers,client,palworldToken)}, 300000);
setInterval(()=>{clean(client)}, 86400000);