This commit is contained in:
Louis Mazin 2025-07-05 14:46:18 +02:00
parent 2468bdc116
commit b061c2e730

View File

@ -30,7 +30,7 @@ module.exports = {
});
await axios.post('https://panel.louismazin.ovh/api/client/servers/ae4a628f/command', {
command: "broadcast 'Redemarrage journalier du serveur (Ca prends 20 secondes)'"
command: "broadcast 'Redemarrage du serveur (Ca prends 20 secondes)'"
}, {
headers: headers
});
@ -46,9 +46,9 @@ module.exports = {
headers: headers
});
// Étape 3: Attendre 10 secondes
await interaction.editReply('⏳ Attente de 10 secondes...');
await new Promise(resolve => setTimeout(resolve, 10000));
// Étape 3: Attendre 20 secondes
await interaction.editReply('⏳ Attente de 20 secondes...');
await new Promise(resolve => setTimeout(resolve, 20000));
// Étape 4: Redémarrer le serveur
await interaction.editReply('🚀 Redémarrage du serveur...');