Created
July 25, 2020 16:27
-
-
Save xnuinside/1bda1df1bd2c27b05df632d9b0f274df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
if date_ <= datetime.now().date(): | |
for i in range(5): | |
if i == 4: | |
date_ = datetime.now() + timedelta(days=1) | |
bot.send_message(chat_id=chat_id, | |
text=request_package_info_from_pypi( | |
choice(bq_get_random_packages_downloaded_for_yesterday())) | |
) | |
sleep(3) | |
if i == 4: | |
date_ = datetime.now().date() + timedelta(days=1) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment