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

Commit 2c9b0b6

Browse files
committed
add missing Twitch Bits test option
1 parent 23a0ac6 commit 2c9b0b6

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Source/TestEvents.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class TestEventUtils:
3434
"valueInput": True,
3535
"quantityInput": True
3636
},
37+
"Bits": {
38+
"valueInput": True,
39+
"quantityInput": False
40+
},
3741
"Host": {
3842
"valueInput": True,
3943
"quantityInput": False
@@ -205,6 +209,24 @@ def EventMessageConstructor(value, special, iterator):
205209
'event_id': eventId
206210
}
207211
eventMessageConstructor = EventMessageConstructor
212+
elif eventType == "Bits":
213+
eventTypeString = "bits"
214+
215+
def EventMessageConstructor(value, special, iterator):
216+
iterator += 1
217+
eventId = TestEventUtils.GenerateUuid()
218+
idGuid = TestEventUtils.GenerateUuid()
219+
return {
220+
'id': idGuid,
221+
'name': 'user' + str(iterator),
222+
'display_name': 'UsEr' + str(iterator),
223+
'amount': value,
224+
'emotes': None,
225+
'message': 'test bits',
226+
'_id': eventId,
227+
'event_id': eventId
228+
}
229+
eventMessageConstructor = EventMessageConstructor
208230
elif eventType == "Host":
209231
eventTypeString = "host"
210232

ToDo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Bugs / Outstanding
22
===================
33

4-
No Twitch Bits option on testing list
54

65

76

0 commit comments

Comments
 (0)