New changes in bot

This commit is contained in:
Florian Kellermann
2022-05-09 18:34:46 +02:00
parent 2cbe6b640d
commit 3ed078cadd
2 changed files with 55 additions and 20 deletions

View File

@@ -56,8 +56,8 @@ def send_current_event(str_event):
for element in all_users["telegram_id"]:
bot.send_message(chat_id=int(element), text="Todays challenge is available!\nTry /daily to give it a try :)")
elif str_event == "over":
for element in all_users:
bot.send_message(chat_id=int(element), text="Todays challenge is over!\nThe price was:\nCheck the /scoreboard to see the leaderboard!")
for element in all_users["telegram_id"]:
bot.send_message(chat_id=int(element), text="Todays challenge is over!\nCheck the /scoreboard to see the leaderboard!")
else:
sys.exit(-1)