The online racing simulator
LFS Server Status code for Discord Bot
First of all, greetings. I want to upload lfs server statistics to my Discord bot. And I want to pass it as code to commands. Could you edit the code I have for the lfs server?

var request = require('request');
var mcCommand = '/minecraft'; // KOMUT
var mcIP = 'MC SERVER IP'; // MC SERVER İPNİZ
var mcPort = 25565; // PORTUNUZ (25565 NORMAL)

client.on('message', message => {
if (message.content === mcCommand) {
var url = 'http://mcapi.us/server/status?ip=' + mcIP + '&port=' + mcPort;
request(url, function(err, response, body) {
if(err) {
console.log(err);
return message.reply('Server Error Veriyor');
}
body = JSON.parse(body);
var status = '*Sunucu Şuanda Offline*';
if(body.online) {
status = 'Sunucu Aktif Üye **online** - ';
if(body.players.now) {
status += '**' + body.players.now + '** Kişi Oynuyor';
} else {
status += '*Oynayan Kimse Yok*';
}
}
message.reply(status);
});
}
});

Demo lisanslı iken kimse bu konuda sana yardımcı olmaz

FGED GREDG RDFGDR GSFDG