/* 
 * about.js - A more indepth and specific information about the bot.
 * 
 * Contributed by Capuccino
 */

const fs = require('fs');

exports.commands = [
    'about'
];

exports.about = {
    desc: 'All you need to know where the bot came from.',
    main: (bot, ctx) => {
        return new Promise((resolve, reject) => {
            let version = JSON.parse(fs.readFileSync(`${__baseDir}/package.json`)).version;
            ctx.msg.channel.createMessage({embed: {
                title: 'About Clara',
                description: localeManager.t('about-nya', ctx.settings.locale, {github: 'https://github.com/awau/Clara', patreon: 'https://patreon.com/capuccino'}),
                image: {url: 'https://github.com/awau/Clara/raw/master/nodebot_logo.png'},
                footer: {text: `${bot.user.username} uses Clara ${version}`}
            }}).then(resolve).catch(reject);
        });
    }
};
@@ -97,16 +97,28 @@
 apuccino
+ and Ovyerus
 %0A */%0A%0Aco
@@ -140,16 +140,260 @@
 e('fs');
+%0Aconst path = require('path');%0A%0Alet version;%0Atry %7B%0A    version = JSON.parse(fs.readFileSync(path.normalize(%60$%7B__baseDir%7D/../package.json%60))).version;%0A%7D catch(_) %7B%0A    version = JSON.parse(fs.readFileSync(%60$%7B__baseDir%7D/package.json%60)).version;%0A%7D
 %0A%0Aexport
@@ -580,100 +580,8 @@
 %3E %7B%0A
-            let version = JSON.parse(fs.readFileSync(%60$%7B__baseDir%7D/package.json%60)).version;%0A
     

Fix about