Skip to content

Commit

Permalink
level in play_message
Browse files Browse the repository at this point in the history
  • Loading branch information
buvanenko committed Apr 18, 2024
1 parent 0cb1a32 commit fd6b737
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/play_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
async def generate(user_id: int, score: int = -1) -> str:
if score == -1:
score = await data.get_score(user_id)
level = await data.get_level(score)
score = "{:,}".format(score).replace(",", " ")
bot_message = f"💰 Твой счёт: {score} SG₽"
bot_message += f"\n📊 Уровень: {level}"
sleep_time = data.get_sleep_time()
if sleep_time == 0:
bot_message += "\n\n⌛ Добыча доступна каждую секунду."
Expand Down

0 comments on commit fd6b737

Please sign in to comment.