{"size": 1760, "ext": "js", "max_stars_repo_path": "Commands/General/Info.js", "max_stars_repo_name": "TTBB-Khai/Yotsu", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Commands/General/Info.js", "max_issues_repo_name": "TTBB-Khai/Yotsu", "max_issues_repo_issues_event_min_datetime": "2018-07-06T15:53:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-04-09T00:59:33.000Z", "max_forks_repo_path": "Commands/General/Info.js", "max_forks_repo_name": "TTBB-Khai/Yotsugi", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 41.9047619048, "max_line_length": 129, "alphanum_fraction": 0.6244318182}
const path = require('path');
const badge = require(path.join(process.cwd(), 'res', 'data', 'badges.json'));
const output = require(path.join(process.cwd(), 'res', 'messages', 'output.json'));
const fs = require('fs');
const { responder: responder } = require(path.join(process.cwd(), 'Utils', 'Responder.js'));

TTBT.registerCommand("info", (msg) => {
	
	if (typeof(badge.user.filter(user => user.id === msg.author.id)[0]) === 'undefined') {
		badge.user.push({"id": msg.author.id, "badges": [":name_badge:"]});
		fs.writeFile((path.join(process.cwd(), 'res', 'data', 'badges.json')), JSON.stringify(badge), err => {
			if (err) console.log(err);
		});
	}
	
	if (!badge.user.filter(user => user.id === msg.author.id)[0].badges.find(badge => badge === ":information_source:")) {
		TTBT.createMessage(msg.channel.id, responder({user: msg.author.mention, badge: ":information_source:"}, output.badge.message));
		badge.user.filter(user => user.id === msg.author.id)[0].badges.push(":information_source:");
		fs.writeFile((path.join(process.cwd(), 'res', 'data', 'badges.json')), JSON.stringify(badge), err => {
			if (err) console.log(err);
		});
	}
	
	return "```Markdown\n * "
			+ "BOT INFO *\n"
			+ "- Bot Creator: TTBB#8359\n"
			+ "- Bot Creator ID: 124640179313967104\n\n"
			+ "- Bot Owner: " + process.env['CLIENT_OWNER'] + "\n"
			+ "- Bot Owner ID: " + process.env['CLIENT_OWNERID'] + "\n\n"
			+ "- Bot Description: " + process.env['CLIENT_DESCRIPTION'] + "\n"
			+ "- Language: node.js\n"
			+ "- Library: Eris.js by abalabahaha\n"
			+ "- Version: 0.0.1 (ALPHA) \n\n```"
},	{
		caseInsensitive: true,
		cooldown: 3000,
		cooldownMessage: "Slow down! This command has a **3 second cooldown!**",
		requirements: {
			"manageMessages": true
		}
	}
);