/*
 * Skybot, a multipurpose discord bot
 *      Copyright (C) 2017  Duncan "duncte123" Sterken
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package ml.duncte123.skybot.commands.fun;

import ml.duncte123.skybot.objects.command.Command;
import ml.duncte123.skybot.utils.EmbedUtils;
import ml.duncte123.skybot.utils.Settings;
import net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent;
import org.apache.commons.lang3.StringUtils;

/**
 * Created by Duncan on 9-7-2017.
 */
public class TextToBrickCommand extends Command {

    /**
     * This is the executeCommand of the command, the thing you want the command to to needs to be in here
     * @param args The command agruments
     * @param event a instance of {@link net.dv8tion.jda.core.events.message.guild.GuildMessageReceivedEvent GuildMessageReceivedEvent}
     */
    @Override
    public void executeCommand(String[] args, GuildMessageReceivedEvent event) {

        if (args.length < 1) {
            event.getChannel().sendMessage("Correct usage: `"+ Settings.prefix + getName() +" <words>`").queue();
            return;
        }

            StringBuilder sb = new StringBuilder();
            for (String a : StringUtils.join(args, " ").split("")) {
                if (Character.isLetter(a.toLowerCase().charAt(0))) {
                    sb.append(":regional_indicator_").append(a.toLowerCase()).append(":");
                } else {
                    if (" ".equals(a)) {
                        sb.append(" ");
                    }
                    sb.append(a);
                }
            }

        sendEmbed(event, EmbedUtils.embedMessage( sb.toString() ));
    }

    /**
     * The usage instructions of the command
     * @return a String
     */
    @Override
    public String help() {
        return "Text to bricks fun.";
    }

    @Override
    public String getName() {
        return "ttb";
    }
}

@@ -1742,20 +1742,16 @@
         
-    
 StringBu
@@ -1778,28 +1778,24 @@
 gBuilder();%0A
-    
         for 
@@ -1855,28 +1855,24 @@
             
-   
- 
 if (Characte
@@ -1908,28 +1908,24 @@
 arAt(0))) %7B%0A
-    
             
@@ -2011,20 +2011,16 @@
         
-    
 %7D else %7B
@@ -2032,28 +2032,24 @@
             
-  
-  
 if (%22 %22.equa
@@ -2053,28 +2053,24 @@
 quals(a)) %7B%0A
-    
             
@@ -2101,36 +2101,32 @@
                 
-    
 %7D%0A              
@@ -2119,36 +2119,32 @@
                 
- 
-   
 sb.append(a);%0A  
@@ -2149,34 +2149,26 @@
             
-    %7D%0A    
+%7D%0A
         %7D%0A%0A 

Fix tabs