Merhabalar
Discord da !live komudu yazdıgımda json verisini kontrol edecek eğer 0 ise aktif degil 1 ise aktif diyecek kod yazmaya çalıstım fakat sürekli hata alıyorum lütfen yardımcı olabilirmisiniz.

module.exports = {
    name: 'live',
    description: 'live check command.',
    cooldown: 5,
    execute(message) {

$.ajax('http://jsonplaceholder.typicode.com/posts/1', {
method: 'GET'
}).then(function(data) {
console.log();

});
    
} 
};