2022-08-16 18:16:19 -04:00
|
|
|
const
|
|
|
|
mc = require('minecraft-server-util'),
|
2022-08-16 18:19:57 -04:00
|
|
|
web = new discord.WebhookClient("1009180421390598365", "uqcEgaZRiSG9L5e3M9idcpr5ObdZDsL1L6QzflQvZbnMew5rA6LJ1HnPghv1WY-PHx0D")
|
2022-08-16 18:16:19 -04:00
|
|
|
|
2022-08-16 18:19:57 -04:00
|
|
|
console.clear()
|
2022-08-16 18:16:19 -04:00
|
|
|
setInterval(async() => {
|
|
|
|
var h = await mc.status("play.2b2flat.fr", 25565).catch(e => {
|
|
|
|
web.send(":red_circle: Serveur Down")
|
|
|
|
})
|
|
|
|
web.send(":green_circle: Serveur Ouvert")
|
|
|
|
}, 120000)
|