// Path: src/jselfbot/utils/FormatUtil.java
// public class FormatUtil
// {
//     
//     public static String join(List<String> strings, String joiner)
//     {
//         if(strings.isEmpty())
//             return "";
//         StringBuilder sb = new StringBuilder(strings.get(0));
//         for(int i=1; i<strings.size(); i++)
//             sb.append(joiner).append(strings.get(i));
//         return sb.toString();
//     }
// }


import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.HashMap;
import jselfbot.utils.FormatUtil;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/*
 * Copyright 2016 John Grosh (jagrosh).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jselfbot.entities;


/**
 *
 * @author John Grosh (jagrosh)
 */
public class Emojis {
    private final HashMap<String, String> emojis;
    private final static String FILENAME = "emojis.json";
    private final static Logger LOG = LoggerFactory.getLogger("Emojis");
    
    public Emojis()
    {
        emojis = new HashMap<>();
        JSONObject obj;
        try {
// Path: src/jselfbot/utils/FormatUtil.java
// public class FormatUtil
// {
//     
//     public static String join(List<String> strings, String joiner)
//     {
//         if(strings.isEmpty())
//             return "";
//         StringBuilder sb = new StringBuilder(strings.get(0));
//         for(int i=1; i<strings.size(); i++)
//             sb.append(joiner).append(strings.get(i));
//         return sb.toString();
//     }
// }


// Path: src/jselfbot/entities/Emojis.java
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collection;
import java.util.HashMap;
import jselfbot.utils.FormatUtil;
import org.json.JSONException;
import org.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/*
 * Copyright 2016 John Grosh (jagrosh).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jselfbot.entities;


/**
 *
 * @author John Grosh (jagrosh)
 */
public class Emojis {
    private final HashMap<String, String> emojis;
    private final static String FILENAME = "emojis.json";
    private final static Logger LOG = LoggerFactory.getLogger("Emojis");
    
    public Emojis()
    {
        emojis = new HashMap<>();
        JSONObject obj;
        try {
            obj = new JSONObject(FormatUtil.join(Files.readAllLines(Paths.get(FILENAME)), "\n"));