Skip to content

Commit b62fc36

Browse files
committed
ran black
1 parent 330080e commit b62fc36

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/requests_api_discord.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
# 900 = 15 mins, 1800 = 30 mins, 3600 = 1 hour
3030
sleep_time = 900
3131

32+
3233
# Converts seconds to human readable minutes/hours/days
3334
def time_calc(input_time): # input_time in seconds
3435
if input_time < 60:
@@ -45,6 +46,7 @@ def time_calc(input_time): # input_time in seconds
4546
time_output = f"{sleep_int:.1f} days"
4647
return time_output
4748

49+
4850
discord_header = {"Authorization": "" + Discord_Auth}
4951
ADA_SOURCE = (
5052
"https://discord.com/api/v10/guilds/"
@@ -67,9 +69,7 @@ def time_calc(input_time): # input_time in seconds
6769

6870
while True:
6971
try:
70-
print(
71-
"\nAttempting to GET Discord Data!"
72-
) # --------------------------------
72+
print("\nAttempting to GET Discord Data!") # --------------------------------
7373
# STREAMER WARNING this will show your credentials!
7474
debug_request = False # Set True to see full request
7575
if debug_request:
@@ -106,4 +106,3 @@ def time_calc(input_time): # input_time in seconds
106106
time.sleep(60)
107107
continue
108108
time.sleep(sleep_time)
109-

0 commit comments

Comments
 (0)