=> null;     // k

        protected override void PopulateDictionary(JObject data)
        {
            foreach (JToken token in data["emotes"])
            {
                EmoteDict.Add(token["code"].ToObject <string>(), token["id"].ToObject <string>());
            }
        }
Exemple #2
0
        protected override void PopulateDictionary(JObject data)
        {
            foreach (JToken token in data["emotes"])
            {
                EmoteDict.Add(token["code"].ToObject <string>(), token["id"].ToObject <string>());
            }

            Logger.FormattedWrite(GetType().Name, $"Loaded {EmoteDict.Count} bttv emotes.", ConsoleColor.DarkGreen);
        }
Exemple #3
0
        protected override void PopulateDictionary(JObject data)
        {
            foreach (JToken token in data["emoticons"])
            {
                EmoteDict.Add(token["regex"].ToObject <string>(),
                              ((JArray)token["images"]).Children().First()["url"].ToObject <string>());
            }

            Logger.FormattedWrite(
                GetType().Name,
                $"Loaded {EmoteDict.Count} global twitch emotes.",
                ConsoleColor.DarkGreen);
        }