{"size": 624, "ext": "js", "max_stars_repo_path": "bot/discord/commands/exec.js", "max_stars_repo_name": "DanBot-Hosting/Premium-Servers", "max_stars_repo_stars_event_min_datetime": "2021-12-19T18:30:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-19T18:30:29.000Z", "max_issues_repo_path": "bot/discord/commands/exec.js", "max_issues_repo_name": "DanBot-Hosting/Premium-Servers", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "bot/discord/commands/exec.js", "max_forks_repo_name": "DanBot-Hosting/Premium-Servers", "max_forks_repo_forks_event_min_datetime": "2022-02-07T00:39:58.000Z", "max_forks_repo_forks_event_max_datetime": "2022-02-07T00:39:58.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 28.3636363636, "max_line_length": 94, "alphanum_fraction": 0.4679487179}
const exec = require('child_process').exec;
exports.run = (client, message, args) => {
    if (message.author.id == "137624084572798976") {

        exec(`${args.join(" ")}`, (error, stdout) => {

            let response = (error || stdout);

            if (response.length > 1024) console.log(response), response = 'Output too long.';

            message.channel.send("", {
                embed: new Discord.MessageEmbed()
                    .setDescription("```" + response + "```")
                    .setTimestamp()
                    .setColor("RANDOM")
            })

        });

    }
}
