const CSGO = require('csgo-api') const srv = new CSGO.Server('185.198.75.14', '27015') module.exports = { kod: "durum", async run (client, message, args) { let isim = srv.getServerName().then(isim => { let oyuncular = srv.getPlayerCount().then(oyuncular => { let map = srv.getMap().then(map => { const { MessageEmbed } = require('discord.js') const stark = new MessageEmbed() .setTitle(isim) .addField('Oyuncu Sayısı:', oyuncular) .addField('Map:', map) .setColor('BLUE') .setFooter(message.author.tag, message.author.displayAvatarURL({dynamic: true})) message.channel.send(stark) }) }) }) } }