Skip to content

Instantly share code, notes, and snippets.

@xnuinside
Created July 25, 2020 16:27
Show Gist options
  • Save xnuinside/1bda1df1bd2c27b05df632d9b0f274df to your computer and use it in GitHub Desktop.
Save xnuinside/1bda1df1bd2c27b05df632d9b0f274df to your computer and use it in GitHub Desktop.
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