From a18aa5ef54f447a5148ed8929d34a21b8ac92c8e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 7 Sep 2019 12:11:13 +0200 Subject: [PATCH] MM bugfix --- royalnet/commands/royalgames/mm.py | 4 ++-- royalnet/version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/royalnet/commands/royalgames/mm.py b/royalnet/commands/royalgames/mm.py index 3fed152c..602e3e6a 100644 --- a/royalnet/commands/royalgames/mm.py +++ b/royalnet/commands/royalgames/mm.py @@ -163,7 +163,7 @@ class MmCommand(Command): def response_string() -> str: delay = (datetime.datetime.now() - mmevent.datetime).total_seconds() - if delay > 60: + if delay < 60: return f"๐Ÿšฉ E' ora di [b]{mmevent.title}[/b]!\n" \ f"Sei pronto?" return f"๐Ÿ•’ Sei in ritardo di [b]{int(delay / 60)} minuti[/b] per [b]{mmevent.title}[/b]...\n" \ @@ -213,7 +213,7 @@ class MmCommand(Command): def started_string(): text = f"๐Ÿšฉ L'evento [b]{mmevent.title}[/b] รจ iniziato!\n\n" \ - f"Parteciperanno:" + f"Partecipano:\n" for mmresponse in sorted(mmevent.responses, key=lambda mmr: mmr.response, reverse=True): if mmresponse.response == "YES": text += f"โœ… {mmresponse.royal}\n" diff --git a/royalnet/version.py b/royalnet/version.py index a6731da7..888431a8 100644 --- a/royalnet/version.py +++ b/royalnet/version.py @@ -1 +1 @@ -semantic = "5.0a49" +semantic = "5.0a50"