This commit is contained in:
Louis Mazin 2025-07-05 14:52:06 +02:00
parent 42465fa5e8
commit 4a0ee3d1d3
2 changed files with 2 additions and 4 deletions

View File

@ -40,8 +40,8 @@ module.exports = {
// Étape 2: Arrêter le serveur
await interaction.editReply('⏹️ Arrêt du serveur...');
await axios.post('https://panel.louismazin.ovh/api/client/servers/ae4a628f/command', {
command: 'shutdown 1'
await axios.post('https://panel.louismazin.ovh/api/client/servers/ae4a628f/power', {
signal: 'stop'
}, {
headers: headers
});

View File

@ -45,8 +45,6 @@ module.exports = {
if (newState === 'running') {
run = true;
await interaction.editReply('✅ Le serveur Palworld a été démarré avec succès !');
} else if (newState === 'starting') {
await interaction.editReply('⏳ Le serveur Palworld est en cours de démarrage...');
}
} catch (error) {
console.error('Erreur lors de la vérification de l\'état du serveur:', error);