From 967ea9adc35eeb010eaeb7bd8f7c354dd2a5bd57 Mon Sep 17 00:00:00 2001 From: ctlaltdefeat Date: Wed, 21 Oct 2020 00:27:07 +0300 Subject: [PATCH] Print streamer_login when claiming bonus --- claim_bonus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claim_bonus.py b/claim_bonus.py index 9a2d627..0c846f2 100644 --- a/claim_bonus.py +++ b/claim_bonus.py @@ -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() \ No newline at end of file + return r.json()