1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

MM bugfix

This commit is contained in:
Steffo 2019-09-07 12:11:13 +02:00
parent 6b1592f3f5
commit a18aa5ef54
2 changed files with 3 additions and 3 deletions

View file

@ -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"

View file

@ -1 +1 @@
semantic = "5.0a49"
semantic = "5.0a50"