// Path: src/main/java/me/ryandowling/allmightybot/commands/Command.java
// public interface Command {
//     public String getName();
//     public void setLevel(CommandLevel level);
//     public boolean run(AllmightyBot bot, MessageEvent event);
//     public void load();
//     public void save();
// }


import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import me.ryandowling.allmightybot.commands.Command;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
        }
        if (removeFirst) {
            list.remove(0);
        }
        return list;
    }

    public static List<String> getCommandsArguments(int count, String message, boolean removeFirst) {
        List<String> list = new ArrayList<String>();

        int begin = 0;

        // Found thanks to http://stackoverflow.com/a/7804472
        Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(message);
        while (m.find()) {
            begin += m.group(1).length() + 1; // Count the space and match
            list.add(m.group(1).replace("\"", ""));
            if (list.size() == count) {
                break;
            }
        }

        list.add(message.substring(begin));

        if (removeFirst) {
            list.remove(0);
        }
        return list;
    }

// Path: src/main/java/me/ryandowling/allmightybot/commands/Command.java
// public interface Command {
//     public String getName();
//     public void setLevel(CommandLevel level);
//     public boolean run(AllmightyBot bot, MessageEvent event);
//     public void load();
//     public void save();
// }


// Path: src/main/java/me/ryandowling/allmightybot/Utils.java
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import me.ryandowling.allmightybot.commands.Command;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

        }
        if (removeFirst) {
            list.remove(0);
        }
        return list;
    }

    public static List<String> getCommandsArguments(int count, String message, boolean removeFirst) {
        List<String> list = new ArrayList<String>();

        int begin = 0;

        // Found thanks to http://stackoverflow.com/a/7804472
        Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(message);
        while (m.find()) {
            begin += m.group(1).length() + 1; // Count the space and match
            list.add(m.group(1).replace("\"", ""));
            if (list.size() == count) {
                break;
            }
        }

        list.add(message.substring(begin));

        if (removeFirst) {
            list.remove(0);
        }
        return list;
    }

    public static Path getCommandDataFile(Command command) {