{"size": 677, "ext": "js", "max_stars_repo_path": "commands/yesorno.js", "max_stars_repo_name": "trafort/Infiabot", "max_stars_repo_stars_event_min_datetime": "2018-02-09T15:56:52.000Z", "max_stars_repo_stars_event_max_datetime": "2021-03-28T08:03:52.000Z", "max_issues_repo_path": "commands/yesorno.js", "max_issues_repo_name": "trafort/Infiabot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/yesorno.js", "max_forks_repo_name": "trafort/Infiabot", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0740740741, "max_line_length": 65, "alphanum_fraction": 0.599704579}
const Discord = require('discord.js')
var request = require('request');

exports.run = async (client, message, args, level) => { 
    request('https://yesno.wtf/api/', function(err, resp, body) {
        let data = JSON.parse(body)
        message.channel.sendEmbed(new Discord.RichEmbed()
            .setImage(data.image)
            .setColor(0x5697ff)
        );
    })
};
  
exports.conf = {
    enabled: true,
    guildOnly: false,
    aliases: [],
    permLevel: 0
};
  
exports.help = {
    name: "yesorno",
    category: "Fun",
    description: "Returns a gif that displays yes or no",
    description: "I return a gif that displays yes or no",
    usage: "yesorno"
};