mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
MM bugfix
This commit is contained in:
parent
6b1592f3f5
commit
a18aa5ef54
2 changed files with 3 additions and 3 deletions
|
@ -163,7 +163,7 @@ class MmCommand(Command):
|
||||||
|
|
||||||
def response_string() -> str:
|
def response_string() -> str:
|
||||||
delay = (datetime.datetime.now() - mmevent.datetime).total_seconds()
|
delay = (datetime.datetime.now() - mmevent.datetime).total_seconds()
|
||||||
if delay > 60:
|
if delay < 60:
|
||||||
return f"🚩 E' ora di [b]{mmevent.title}[/b]!\n" \
|
return f"🚩 E' ora di [b]{mmevent.title}[/b]!\n" \
|
||||||
f"Sei pronto?"
|
f"Sei pronto?"
|
||||||
return f"🕒 Sei in ritardo di [b]{int(delay / 60)} minuti[/b] per [b]{mmevent.title}[/b]...\n" \
|
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():
|
def started_string():
|
||||||
text = f"🚩 L'evento [b]{mmevent.title}[/b] è iniziato!\n\n" \
|
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):
|
for mmresponse in sorted(mmevent.responses, key=lambda mmr: mmr.response, reverse=True):
|
||||||
if mmresponse.response == "YES":
|
if mmresponse.response == "YES":
|
||||||
text += f"✅ {mmresponse.royal}\n"
|
text += f"✅ {mmresponse.royal}\n"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
semantic = "5.0a49"
|
semantic = "5.0a50"
|
||||||
|
|
Loading…
Reference in a new issue