Print streamer_login when claiming bonus
This commit is contained in:
@@ -10,7 +10,7 @@ from twitch_data import get_auth_token, get_channel_id, USER_AGENT, get_client_i
|
||||
|
||||
|
||||
def claim_channel_points_bonus(streamer_login, claim_id):
|
||||
print("Claiming the bonus!")
|
||||
print(f"Claiming the bonus for {streamer_login}!")
|
||||
json_data = {"operationName": "ClaimCommunityPoints",
|
||||
"variables": {"input": {"channelID": get_channel_id(streamer_login), "claimID": claim_id}},
|
||||
"extensions": {"persistedQuery": {"version": 1, "sha256Hash": "46aaeebe02c99afdf4fc97c7c0cba964124bf6b0af229395f1f6d1feed05b3d0"}}}
|
||||
@@ -40,4 +40,4 @@ def post_gql_request(json_data):
|
||||
headers={"Authorization": "OAuth " + get_auth_token(),
|
||||
"Client-Id": get_client_id(),
|
||||
"User-Agent": USER_AGENT})
|
||||
return r.json()
|
||||
return r.json()
|
||||
|
||||
Reference in New Issue
Block a user