summaryrefslogtreecommitdiff
path: root/commands/event.py
diff options
context:
space:
mode:
authorMikhail Kirillov <w96k@runbox.com>2024-10-10 06:20:52 +0400
committerMikhail Kirillov <w96k@runbox.com>2024-10-10 06:20:52 +0400
commit23bddf358dc615d18ed4470f33f383f1eac9ac63 (patch)
tree9d9ac4e9aa31c237b9a7776abc27dcd597d6d4e6 /commands/event.py
parent8d2d5acde9d4d7d44d93c386e541692f4e45a271 (diff)
Task #10. /announce command
Diffstat (limited to 'commands/event.py')
-rw-r--r--commands/event.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/commands/event.py b/commands/event.py
index 5a7bf69..e06ea83 100644
--- a/commands/event.py
+++ b/commands/event.py
@@ -75,10 +75,26 @@ async def create_event(
if events == [] or is_past(events[-1]["when"]):
events.append(event_dict)
- await update.message.reply_text(EVENT_CREATED.format(when=event_when))
+ await update.message.reply_text(
+ EVENT_CREATED.format(
+ when=event_when,
+ movie=event_dict["movie"],
+ )
+ )
else:
+ old_when = events[-1]["when"]
+ old_where = events[-1]["where"]
events[-1] = event_dict
- await update.message.reply_text(EVENT_EDITED.format(when=event_when))
+
+ await update.message.reply_text(
+ EVENT_EDITED.format(
+ old_when=old_when,
+ old_where=old_where,
+ when=event_when,
+ where=event_where,
+ movie=event_dict["movie"],
+ )
+ )
async def list_events(