From 9be02d9141c14a3e3ca28567dbaff671de83200f Mon Sep 17 00:00:00 2001 From: Mikhail Kirillov Date: Thu, 10 Oct 2024 04:12:00 +0400 Subject: Fix #9. Add events commands --- strings.py | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'strings.py') diff --git a/strings.py b/strings.py index 4a51308..53059ed 100644 --- a/strings.py +++ b/strings.py @@ -12,13 +12,15 @@ INVALID_COMMAND = "Invalid command. Available commands: /add /list /remove /chooser /about" MOVIE_ANOTHER_USER = "Movie should choose another user ({user})" -MOVIE_NOT_PROVIDED = "Movie is not provided" +MOVIE_NOT_PROVIDED = "Movie IMDB id is not provided. Use /movie " MOVIE_NOT_FOUND = "Movie not found on IMDB" EXPECTED_ONE_MOVIE = "Expected only one movie" FETCHING_MOVIE = "Movie with ID {id} is being fetched: https://imdb.com/title/tt{id}/" FETCHING_ERROR = "Couldn't fetch movie or it is not found. Provide IMDB id, for example: 0133093" 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" USER_NOT_FOUND = "Provided user ({user}) not found. Check /list" USER_NOT_PROVIDED = "User(s) is not provided" @@ -28,11 +30,34 @@ NEXT_MOVIE_USER = "Next movie choice is up to {user}" USER_ADD = "User {user} has been added" USERS_ADDED = "Users have been added successfully. Use /list to view." - USER_REMOVE = "User {user} has been removed. Use /list to view." USERS_REMOVED = "Users has been removed" - USER_SET = "Users have been set successfully. Use /list to view." USER_CHOOSE = "Next movie should choose: {user}" +NO_USERS = "No user added. You can add users by /add " + +EVENT_INVALID_DATETIME = """ +Can't parse provided datetime. It should comply template like this: +/event 1.08.2024/18:00 +""" +EVENT_CANT_BE_IN_PAST = "Event can't happen in the past. You set {when}, but today is {today}" +EVENT_ARGS_NOT_PROVIDED = """ +Event commands need arguments provided: +/event +/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment +""" +EVENT_WHERE_NOT_PROVIDED = """ +Second argument is not provided and previous event doesn't has it. +/event +/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" +EVENTS_LIST = "[{finished}] \"{movie}\" by {user} at {when} in {where}\n" +EVENT_MOVIE_NOT_CHOOSEN = "You should choose a film first using /movie " +EVENT_MOVIE_NOT_SET = "" +EVENT_USER_HAD_EVENT = "User {user} have already finished event, so he can't choose twice. See /next or /list" +NO_EVENTS = "No events" UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs." -- cgit v1.2.3