{"size": 897, "ext": "js", "max_stars_repo_path": "commands/setemblem.js", "max_stars_repo_name": "Lilwiggy/Penny", "max_stars_repo_stars_event_min_datetime": "2017-12-21T13:43:10.000Z", "max_stars_repo_stars_event_max_datetime": "2019-10-30T15:31:52.000Z", "max_issues_repo_path": "commands/setemblem.js", "max_issues_repo_name": "Lilwiggy/PennyJS", "max_issues_repo_issues_event_min_datetime": "2017-12-21T08:18:45.000Z", "max_issues_repo_issues_event_max_datetime": "2020-02-20T15:52:37.000Z", "max_forks_repo_path": "commands/setemblem.js", "max_forks_repo_name": "Lilwiggy/PennyJS", "max_forks_repo_forks_event_min_datetime": "2017-12-20T23:32:41.000Z", "max_forks_repo_forks_event_max_datetime": "2019-03-10T07:44:00.000Z"}
{"max_stars_count": 560, "max_issues_count": 9, "max_forks_count": 16, "avg_line_length": 40.7727272727, "max_line_length": 168, "alphanum_fraction": 0.6700111483}
/* eslint-disable linebreak-style */
exports.run = (client, message, args) => {
// Basically badges, BUT BETTER IN EVERY WAY!
// Oh also these are a bit more expensive than backgrounds. So ha! Save and spen your monies
	const data = require('../modules/shop.json');
	if (args.length === 1) {
		message.channel.send(`Usage: ${client.prefix}setemblem [emblem]`);
	} else if (data[args[1]] && data[args[1]].type === 'emblem') {
		client.setEmblem(message.author.id, message.author.displayAvatarURL({ format: 'png', size: 2048, dynamic: true }), data[args[1]].name, data[args[1]].price, message);
	} else {
		message.channel.send(`Please use a valid emblem. You can view the options by doing ${client.prefix}shopinfo emblems`);
	}
};


exports.conf = {
	name: 'setemblem',
	description: 'Set your emblem for your profile on Penny.',
	usage: 'setemblem [emblem]',
	aliases: [],
};
