src/main/java/me/evyn/bot/commands/info/Stats.java
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {

        JDA api = event.getJDA();
        User bot = api.getSelfUser();

        // get process memory usage
        long totalMemory = Runtime.getRuntime().totalMemory() / (1024 * 1024);
        long usedMemory = totalMemory - Runtime.getRuntime().freeMemory() / (1024 * 1024);

        String memory = String.format("%dMB / %dMB", usedMemory, totalMemory);

        int guilds = api.getGuilds().size();
        int channels = api.getTextChannels().size();
        int users = api.getUsers().size();

        if (embed) {
            EmbedBuilder eb = EmbedCreator.newInfoEmbedMessage(bot)
                    .setTitle(bot.getName() + " statistics")
                    .addField("Memory", memory, true)
                    .addField("Guilds", "" + guilds, true)
                    .addField("Channels", "" + channels, true)
                    .addField("Users", "" + users, true)
                    .addField("Version", BotInfo.BOT_VERSION, true)
                    .addField("JDA", BotInfo.JDA_VERSION, true);

            event.getChannel()
                    .sendMessage(eb.build())
                    .queue();
        } else {
            event.getChannel()
                    .sendMessage("**" + bot.getName() + " statistics**" + "\n\n" + "**Memory:** " + memory +
                            "\n" + "**Guilds:** " + guilds + "\n" + "**Channels:** " + channels + "\n" +
                            "**Users:** " + users + "\n" + "**Version:** " + BotInfo.BOT_VERSION + "\n" + "**JDA:** " +
                            BotInfo.JDA_VERSION)
                    .queue();
        }
    }
/**
     * Provides information on bot instance
     * @param event Discord API message event
     * @param prefix Specific guild bot prefix
     * @param embed Guild embed setting
     * @param args Command arguments
     */
Provides information on bot instance
@param event Discord API message event
@param prefix Specific guild bot prefix
@param embed Guild embed setting
@param args Command arguments
Provides information on bot instance @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments
@Override
    public void run(MessageReceivedEvent event, String prefix, boolean embed, String[] args) {
        JDA api = event.getJDA();
        User bot = api.getSelfUser();
        long totalMemory = Runtime.getRuntime().totalMemory() / (1024 * 1024);
        long usedMemory = totalMemory - Runtime.getRuntime().freeMemory() / (1024 * 1024);
        String memory = String.format("%dMB / %dMB", usedMemory, totalMemory);
        int guilds = api.getGuilds().size();
        int channels = api.getTextChannels().size();
        int users = api.getUsers().size();
        if (embed) {
            EmbedBuilder eb = EmbedCreator.newInfoEmbedMessage(bot)
                    .setTitle(bot.getName() + " statistics")
                    .addField("Memory", memory, true)
                    .addField("Guilds", "" + guilds, true)
                    .addField("Channels", "" + channels, true)
                    .addField("Users", "" + users, true)
                    .addField("Version", BotInfo.BOT_VERSION, true)
                    .addField("JDA", BotInfo.JDA_VERSION, true);
            event.getChannel()
                    .sendMessage(eb.build())
                    .queue();
        } else {
            event.getChannel()
                    .sendMessage("**" + bot.getName() + " statistics**" + "\n\n" + "**Memory:** " + memory +
                            "\n" + "**Guilds:** " + guilds + "\n" + "**Channels:** " + channels + "\n" +
                            "**Users:** " + users + "\n" + "**Version:** " + BotInfo.BOT_VERSION + "\n" + "**JDA:** " +
                            BotInfo.JDA_VERSION)
                    .queue();
        }
    }
@ Override public void run ( MessageReceivedEvent event , String prefix , boolean embed , String [ ] args ) { JDA api = event . getJDA ( ) ; User bot = api . getSelfUser ( ) ; long totalMemory = Runtime . getRuntime ( ) . totalMemory ( ) / ( 1024 * 1024 ) ; long usedMemory = totalMemory - Runtime . getRuntime ( ) . freeMemory ( ) / ( 1024 * 1024 ) ; String memory = String . format ( "%dMB / %dMB" , usedMemory , totalMemory ) ; int guilds = api . getGuilds ( ) . size ( ) ; int channels = api . getTextChannels ( ) . size ( ) ; int users = api . getUsers ( ) . size ( ) ; if ( embed ) { EmbedBuilder eb = EmbedCreator . newInfoEmbedMessage ( bot ) . setTitle ( bot . getName ( ) + " statistics" ) . addField ( "Memory" , memory , true ) . addField ( "Guilds" , "" + guilds , true ) . addField ( "Channels" , "" + channels , true ) . addField ( "Users" , "" + users , true ) . addField ( "Version" , BotInfo . BOT_VERSION , true ) . addField ( "JDA" , BotInfo . JDA_VERSION , true ) ; event . getChannel ( ) . sendMessage ( eb . build ( ) ) . queue ( ) ; } else { event . getChannel ( ) . sendMessage ( "**" + bot . getName ( ) + " statistics**" + "\n\n" + "**Memory:** " + memory + "\n" + "**Guilds:** " + guilds + "\n" + "**Channels:** " + channels + "\n" + "**Users:** " + users + "\n" + "**Version:** " + BotInfo . BOT_VERSION + "\n" + "**JDA:** " + BotInfo . JDA_VERSION ) . queue ( ) ; } }
Provides information on bot instance
 @param event Discord API message event
 @param prefix Specific guild bot prefix
 @param embed Guild embed setting
 @param args Command arguments
Provides information on bot instance @param event Discord API message event @param prefix Specific guild bot prefix @param embed Guild embed setting @param args Command arguments
// get process memory usage