Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit aa16f1c

Browse files
authored
Also update event type of youtube subscriptions
1 parent fe09c47 commit aa16f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/codeoverflow/chatoverflow/requirement/service/streamelements/StreamElementsListener.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class StreamElementsListener extends EventManager {
2323
// Youtube's superchat is like a donation/tip, a donation of money that the streamer gets.
2424
// To unify this across all platforms a Youtube sub is a Follow, a Youtube sponsor is a subscription and
2525
// a Youtube superchat is a donation.
26-
case "subscription" if provider == "youtube" => call(FollowEventJSON(json))
26+
case "subscriber" if provider == "youtube" => call(FollowEventJSON(json))
2727
case "sponsor" => call(SubscriptionEventJSON(json))
2828
case "superchat" => call(DonationEventJSON(json))
2929

0 commit comments

Comments
 (0)