module.exports = (message, client, helper) => {
    let help = client.core.json.help;
    let embed = {
        "fields": [],
        "author": {
            "name": `Total: ${client.all_usage.all}`
        }
    };
    
    Object.keys(help).forEach(key => {
        embed.fields.push({
            "name": key,
            "value": help[key].filter(topic => topic.name.split(" ").length === 1).map(topic => `\`${topic.name}\`: ${client.all_usage[topic.name] || 0}`).join("\n"), 
            "inline": true
        });
    });

    let len = embed.fields.length % 3;
    for (let i = 0; i < 3 - len; i++) {
        embed.fields.push({
            "name": "\u200b",
            "value": "\u200b",
            "inline": true
        });
    }

    message.channel.createMessage({
        "embed": embed
    }).catch(err => helper.handle(message, err));
};

module.exports = (message, client, helper) => {
    let help = client.core.locale.en.com.help_topics;
    let embed = {
        "fields": [],
        "author": {
            "name": `Total: ${client.all_usage.all}`
        }
    };
    
    Object.keys(help).forEach(key => {
        embed.fields.push({
            "name": key,
            "value": help[key].filter(topic => topic.name.split(" ").length === 1).map(topic => `\`${topic.name}\`: ${client.all_usage[topic.name] || 0}`).join("\n"), 
            "inline": true
        });
    });

    // let len = embed.fields.length % 3;
    // for (let i = 0; i < 3 - len; i++) {
    //     embed.fields.push({
    //         "name": "\u200b",
    //         "value": "\u200b",
    //         "inline": true
    //     });
    // }

    message.channel.createMessage({
        "embed": embed
    }).catch(err => helper.handle(message, err));
};

include new commands in usage