Changeset 69dd60c in python-cinema-club-bot for commands/announce.py
- Timestamp:
- Oct 11, 2024, 1:53:24 AM (5 weeks ago)
- Branches:
- master
- Children:
- ac7b16a
- Parents:
- 694d823
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands/announce.py
r694d823 r69dd60c 13 13 from telegram.ext import ContextTypes 14 14 15 from strings import ANNOUNCEMENT_TEMPLATE, ANNOUNCEMENT_FINISHED_EVENT 15 from strings import ANNOUNCEMENT_TEMPLATE, ANNOUNCEMENT_FINISHED_EVENT, \ 16 ANNOUNCEMENT_EVENT_NEEDS_EDITING 16 17 from utils import context_init, create_users_string, choose_next_user 17 18 from predicates import has_unfinished_event … … 32 33 last_movie = movies[-1] 33 34 34 genres = " #".join(last_movie["genres"]) 35 if last_event["when"] is None or last_event["where"] is None or last_event["movie"] is None: 36 raise error.TelegramError(ANNOUNCEMENT_EVENT_NEEDS_EDITING) 37 38 genres ="#" + " #".join(last_movie["genres"]) 35 39 36 40 await update.message.reply_markdown(
Note:
See TracChangeset
for help on using the changeset viewer.