Update Twitch lib. Remove debug output
This commit is contained in:
parent
a2c4d14540
commit
1cb19f8d9b
|
|
@ -17,7 +17,6 @@ class Twitch:
|
|||
now = datetime.datetime.now()
|
||||
future = now + timedelta(weeks=3)
|
||||
unx_time = future.timestamp()
|
||||
print("unix time:", unx_time)
|
||||
return int(unx_time)
|
||||
|
||||
async def get_access_token(self):
|
||||
|
|
@ -28,7 +27,6 @@ class Twitch:
|
|||
}
|
||||
|
||||
response = requests.post("https://id.twitch.tv/oauth2/token", params=params)
|
||||
print("response:", response.json())
|
||||
self.access_token = response.json()["access_token"]
|
||||
self.access_token_expires = await self.get_unix_time()
|
||||
return self.access_token, self.access_token_expires
|
||||
|
|
|
|||
Loading…
Reference in a new issue