Legere correctif sur le bot pour proton db

This commit is contained in:
Kepka Ludovic
2025-08-17 13:12:03 +02:00
parent 4b5b59bd96
commit c84438af83
2 changed files with 6 additions and 4 deletions

View File

@@ -81,8 +81,7 @@ async def on_message(message: Message):
else :
msg = f'{mention} J\'ai trouvé {len(games)} jeux :\n'
ite = iter(games)
while (game := next(ite, None)) is not None and len(msg) < 1900 :
print(game)
while (game := next(ite, None)) is not None and len(msg) < 1850 :
msg += f'- [{game.get('name')}](https://www.protondb.com/app/{game.get('id')}) classé **{game.get('tier')}**\n'
rest = sum(1 for _ in ite)
if (rest > 0):