test
This commit is contained in:
parent
42465fa5e8
commit
4a0ee3d1d3
@ -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
|
||||
});
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user