/**
 * Created by Tom on 7/29/2017.
 */
exports.run = (client) => {
    const Discord = require('discord.js');
    const config = require("../config.json");
    const snekfetch = require('snekfetch');
    const dblkey = config.dblkey;
    const dbotskey = config.dbotskey;
    const moment = require('moment');
    const fs = require('fs')
    const path = require('path');
    const prefixes = path.join('./prefixes.json');

    function getRandomColor() {

        let letters = '0123456789';
        let color = '';
        for (let i = 0; i < 7; i++) {
            color += letters[Math.floor(Math.random() * 10)];
        }

        return color;
    }
    
    const prefix JSON.parse(fs.readFileSync(prefixes, 'utf8'));
    client.guilds.forEach(g => {
        if (!prefix[g.id]) prefix[g.id] = {"prefix": config.prefix};
    });

    snekfetch.post(`https://discordbots.org/api/bots/334186716770598912/stats1`)
        .set('Authorization', dblkey)
        .send({server_count: client.guilds.size})
        .then(r => console.log(r.status + ' for dbl guild count of ' + client.guilds.size))
        .catch(e => console.warn('wew tf happened here ' + e + ' for dbl post guild count of ' + client.guilds.size));
    snekfetch.post(`https://bots.discord.pw/api/bots/334186716770598912/stats1`)
        .set('Authorization', dbotskey)
        .send({server_count: client.guilds.size})
        .then(r => console.log('status : ' + r.status + ' for dbots guild count of ' + client.guilds.size))
        .catch(e => console.warn('wew tf happened here ' + e + ' for dbots post guild count of ' + client.guilds.size));
    client.user.setGame(`With Nekos \\o/`).catch(e => console.warn('wew tf happened here ' + e));
    client.channels.get("334471388289302539").send({
        embed: {
            color: getRandomColor(),
            title: "I restarted",
            author: {
                name: client.user.username,
                icon_url: client.user.avatarURL
            }
            ,
            fields: [
                {
                    name: "Guilds",
                    value: client.guilds.size
                    , inline: true
                },
                {
                    name: "Users",
                    value: client.users.filter(g => !g.bot).size, inline: true
                },
                {
                    name: "Bots",
                    value: client.users.filter(g => g.bot).size, inline: true
                }, {
                    name: "Ping",
                    value: client.ping.toFixed(0) + 'ms', inline: true
                },

                {
                    name: "Ram used",
                    value: `${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}MB`, inline: true
                },
                {
                    name: "Version info",
                    value: "**Node**: " + process.version + " **D.js**: " + Discord.version, inline: true

                }, {
                    name: "Bringing you Nekos since"
                    , value: moment(client.user.createdAt).format('LLLL'), inline: true
                }
            ],
            timestamp: new Date(),
        }

    }).catch(e => console.warn('wew tf happened here ' + e));
    console.log(`Ready to serve on ${client.guilds.size} servers, for ${client.users.size} users.`);
};

@@ -697,16 +697,18 @@
 t prefix
+ =
  JSON.pa

Update ready.js