Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit dbc1170

Browse files
committed
small fixes
1 parent 6dce15b commit dbc1170

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Source/StreamlabsEvent.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def __init__(self, state, platformString, typeString, payload):
3939
self.bestComment = self.rawMessage["message"]
4040
elif "comment" in self.rawMessage.keys():
4141
self.bestComment = self.rawMessage["comment"]
42+
if self.bestComment == None:
43+
self.bestComment = ""
4244

4345
self.handlerName = StreamlabsEventUtils.MakeHandlerString(
4446
self.platform, self.type)

Source/eventDefinitions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898
},
9999
"twitch_account-subscriptionGift": {
100-
"_comment": "When a specific user is gifted a subscription.",
100+
"_comment": "When a user is gifted a subscription. If the gift was too the community and not the specific viewer then the 'twitchMysterSubGiftMode' option must be set to 'receiver' in the profile for this event to be triggered in this situation.",
101101
"name": {
102102
"valueType": "text string",
103103
"description": "the username of the person who received the subscription"

0 commit comments

Comments
 (0)