diff options
author | Mikhail Kirillov <w96k@runbox.com> | 2024-10-10 06:20:52 +0400 |
---|---|---|
committer | Mikhail Kirillov <w96k@runbox.com> | 2024-10-10 06:20:52 +0400 |
commit | 23bddf358dc615d18ed4470f33f383f1eac9ac63 (patch) | |
tree | 9d9ac4e9aa31c237b9a7776abc27dcd597d6d4e6 /strings.py | |
parent | 8d2d5acde9d4d7d44d93c386e541692f4e45a271 (diff) |
Task #10. /announce command
Diffstat (limited to 'strings.py')
-rw-r--r-- | strings.py | 43 |
1 files changed, 38 insertions, 5 deletions
@@ -20,13 +20,14 @@ FETCHING_ERROR = "Couldn't fetch movie or it is not found. Provide IMDB id, for MOVIE_REMOVE = "Movie \"{title}\" with id {id} has been removed" MOVIE_SET = "Movie \"{title}\" proposed by {user} is succesfully set as next to watch" MOVIES_LIST = "\"{title}\" IMDB:{id} by {user} \n" -NO_MOVIES = "No movies" +NO_MOVIES = "No movies. You can add movie if you are next to choose (see /next). Too add a movie use /movie <imdb_id>" USER_NOT_FOUND = "Provided user ({user}) not found. Check /list" USER_NOT_PROVIDED = "User(s) is not provided" EXPECTED_ONE_USER = "Expected only one user" ADD_MORE_USERS = "There is no users added. You can add people who can choose movies using /add nickname" NEXT_MOVIE_USER = "Next movie choice is up to {user}" +NEXT_MOVIE = " and they have choosen to watch \"{movie}\"" USER_ADD = "User {user} has been added" USERS_ADDED = "Users have been added successfully. Use /list to view." @@ -40,7 +41,7 @@ EVENT_INVALID_DATETIME = """ Can't parse provided datetime. It should comply template like this: /event 1.08.2024/18:00 <where> """ -EVENT_CANT_BE_IN_PAST = "Event can't happen in the past. You set {when}, but today is {today}" +EVENT_CANT_BE_IN_PAST = "Event can't happen in the past. You set {when}, but now is {today}" EVENT_ARGS_NOT_PROVIDED = """ Event commands need arguments provided: /event <when> <where> @@ -52,12 +53,44 @@ Second <where> argument is not provided and previous event doesn't has it. /event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment """ -EVENT_CREATED = "Event at {when} was created" -EVENT_EDITED = "Event at {when} was modified" +EVENT_CREATED = "Event \"{movie}\" at {when} was created" +EVENT_EDITED = "Event \"{movie}\" at {old_when} in {old_where} was modified to {when} in {where}" EVENTS_LIST = "[{finished}] \"{movie}\" by {user} at {when} in {where}\n" EVENT_MOVIE_NOT_CHOOSEN = "You should choose a film first using /movie <imdb_id>" EVENT_MOVIE_NOT_SET = "<None>" EVENT_USER_HAD_EVENT = "User {user} have already finished event, so he can't choose twice. See /next or /list" -NO_EVENTS = "No events" +NO_EVENTS = "No events." UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs." + +ANNOUNCEMENT_FINISHED_EVENT = "There is no planned events. Create one using /event <when> <where>" +ANNOUNCEMENT_TEMPLATE = """ +{intro} + +Movie: {movie_title} +Choosen by: @{user} +Runtime: {movie_runtime} minutes + +When: {when} +Where: {where} + +Rating: {rating} +Genres: {genres} + +https://imdb.com/title/tt{movie_id}/ +""" + +ABOUT = """ +v{version} #{commit} + +python-cinema-club-bot is a bot for Telegram specialized for managing cinema club activities. This software is released as Public Domain using CC0 license. + +Project information: http://57.129.46.169/trac/wiki/python-cinema-club-bot +Source code: http://57.129.46.169/cgit/python-cinema-club-bot/ + +Contributed in 2024 by Mikhail Kirillov (~w96k) <w96k@runbox.com> + +To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. + +You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see: <http://creativecommons.org/publicdomain/zero/1.0/> + """ |