diff --git a/.classpath b/.classpath
index 2119f89..6f3769e 100644
--- a/.classpath
+++ b/.classpath
@@ -7,6 +7,6 @@
-
+
diff --git a/sigIRCv2.jar b/sigIRCv2.jar
index 953bca5..9d1ba96 100644
Binary files a/sigIRCv2.jar and b/sigIRCv2.jar differ
diff --git a/src/sig/modules/TwitchModule.java b/src/sig/modules/TwitchModule.java
index 74fcce4..e9fe517 100644
--- a/src/sig/modules/TwitchModule.java
+++ b/src/sig/modules/TwitchModule.java
@@ -24,6 +24,7 @@ import javax.swing.SwingUtilities;
import com.mb3364.twitch.api.Twitch;
import com.mb3364.twitch.api.handlers.ChannelFollowsResponseHandler;
import com.mb3364.twitch.api.handlers.StreamResponseHandler;
+import com.mb3364.twitch.api.handlers.UserResponseHandler;
import com.mb3364.twitch.api.models.ChannelFollow;
import com.mb3364.twitch.api.models.Stream;
import com.mb3364.twitch.api.models.User;
@@ -82,7 +83,6 @@ public class TwitchModule extends Module{
CreateFollowerQueueLog();
}
manager.setClientId("o4c2x0l3e82scgar4hpxg6m5dfjbem");
- getFollowers(firstTime);
/*manager.streams().get("theduckishot", new StreamResponseHandler() {
@Override
diff --git a/src/sig/sigIRC.java b/src/sig/sigIRC.java
index d9de79e..b906bad 100644
--- a/src/sig/sigIRC.java
+++ b/src/sig/sigIRC.java
@@ -96,6 +96,7 @@ public class sigIRC{
public static String twitchmodule_newfollowerTextColor="255,255,255";
public static int twitchmodule_newfollowerImgLogoSize=32;
public static boolean testMode=false;
+ public final static String TWITCHEMOTEURL = "https://static-cdn.jtvnw.net/emoticons/v1/";
public static void main(String[] args) {
@@ -261,8 +262,15 @@ public class sigIRC{
private static void performTwitchEmoteUpdate() {
try {
- JSONObject twitchemotes = FileUtils.readJsonFromUrl("https://twitchemotes.com/api_cache/v2/global.json");
- JSONObject emotelist = twitchemotes.getJSONObject("emotes");
+ JSONObject twitchemotes = FileUtils.readJsonFromUrl("https://twitchemotes.com/api_cache/v3/global.json");
+ for (String emotes : twitchemotes.keySet()) {
+ JSONObject emote = twitchemotes.getJSONObject(emotes);
+ int id = emote.getInt("id");
+ String name = emote.getString("code");
+ emoticons.add(new Emoticon(name, new URL(TWITCHEMOTEURL+id+"/1.0")));
+ }
+ JSONObject subemotes = FileUtils.readJsonFromUrl("https://twitchemotes.com/api_cache/v3/subscriber.json");
+ /*JSONObject emotelist = twitchemotes.getJSONObject("emotes");
JSONObject templatelist = twitchemotes.getJSONObject("template");
String templateurl = templatelist.getString("small");
for (String emotes : emotelist.keySet()) {
@@ -270,7 +278,7 @@ public class sigIRC{
int id = emote.getInt("image_id");
String emoteurl = templateurl.replace("{image_id}", ""+id);
emoticons.add(new Emoticon(emotes, new URL(emoteurl)));
- }
+ }*/
} catch (JSONException e) {
e.printStackTrace();
} catch (IOException e) {