Skip to content

Commit

Permalink
feat(tsl): StreamElements support to Loyalty Points Redemption event
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Jun 27, 2020
1 parent 391d301 commit 7994348
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=1.6.2
mod_version=1.6.3

minecraft_version=1.14.4
forge_version=28.0.83
Expand Down
Expand Up @@ -90,6 +90,7 @@ protected void onLiveEvent(Socket socket, CredentialsConfig.Streamer streamer, O
eventArguments.viewerCount = JSONUtils.extractNumberFrom(data, "amount ", 0).intValue();
eventArguments.subscriptionTier = extractTier(data, "tier");
// TODO: add gifted
eventArguments.rewardTitle = JSONUtils.extractFrom(data, "redemption", String.class, null);

// Pass the model to the handler
ConfigManager.RULESET_COLLECTION.handleEvent(eventArguments);
Expand Down
Expand Up @@ -16,8 +16,10 @@ public enum TSLEventKeyword {
new TSLEventPair("tip", "youtube")
),
LOYALTY_POINT_REDEMPTION(
"Royalty Point Redemption",
new TSLEventPair("redemption", "")
"Loyalty Point Redemption",
new TSLEventPair("redemption", ""),
new TSLEventPair("redemption", "streamlabs"),
new TSLEventPair("redemption", "streamelements")
),
TWITCH_FOLLOW(
"Twitch Follow",
Expand Down

0 comments on commit 7994348

Please sign in to comment.