summaryrefslogtreecommitdiff
path: root/strings.py
diff options
context:
space:
mode:
authorMikhail Kirillov <w96k@runbox.com>2024-10-10 04:12:00 +0400
committerMikhail Kirillov <w96k@runbox.com>2024-10-10 04:12:00 +0400
commit9be02d9141c14a3e3ca28567dbaff671de83200f (patch)
treeecc8c2f7023654179d51e2fdee68b1d688c131d8 /strings.py
parent662342863e37e8661f818218df7bb72bc18bf4eb (diff)
Fix #9. Add events commands
Diffstat (limited to 'strings.py')
-rw-r--r--strings.py31
1 files changed, 28 insertions, 3 deletions
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 <imdb_id>"
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 <nickname1> <nickname2>"
+
+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_ARGS_NOT_PROVIDED = """
+Event commands need arguments provided:
+/event <when> <where>
+/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment
+"""
+EVENT_WHERE_NOT_PROVIDED = """
+Second <where> argument is not provided and previous event doesn't has it.
+/event <when> <where>
+/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 <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"
UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs."