Changeset 9be02d9 in python-cinema-club-bot for strings.py


Ignore:
Timestamp:
Oct 10, 2024, 4:12:00 AM (5 weeks ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
8d2d5ac
Parents:
6623428
Message:

Fix #9. Add events commands

File:
1 edited

Legend:

Unmodified
Added
Removed
  • strings.py

    r6623428 r9be02d9  
    1313
    1414MOVIE_ANOTHER_USER = "Movie should choose another user ({user})"
    15 MOVIE_NOT_PROVIDED = "Movie is not provided"
     15MOVIE_NOT_PROVIDED = "Movie IMDB id is not provided. Use /movie <imdb_id>"
    1616MOVIE_NOT_FOUND = "Movie not found on IMDB"
    1717EXPECTED_ONE_MOVIE = "Expected only one movie"
     
    2020MOVIE_REMOVE = "Movie \"{title}\" with id {id} has been removed"
    2121MOVIE_SET = "Movie \"{title}\" proposed by {user} is succesfully set as next to watch"
     22MOVIES_LIST = "\"{title}\" IMDB:{id} by {user} \n"
     23NO_MOVIES = "No movies"
    2224
    2325USER_NOT_FOUND = "Provided user ({user}) not found. Check /list"
     
    2931USER_ADD = "User {user} has been added"
    3032USERS_ADDED = "Users have been added successfully. Use /list to view."
    31 
    3233USER_REMOVE = "User {user} has been removed. Use /list to view."
    3334USERS_REMOVED = "Users has been removed"
    34 
    3535USER_SET = "Users have been set successfully. Use /list to view."
    3636USER_CHOOSE = "Next movie should choose: {user}"
     37NO_USERS = "No user added. You can add users by /add <nickname1> <nickname2>"
     38
     39EVENT_INVALID_DATETIME = """
     40Can't parse provided datetime. It should comply template like this:
     41/event 1.08.2024/18:00 <where>
     42"""
     43EVENT_CANT_BE_IN_PAST = "Event can't happen in the past. You set {when}, but today is {today}"
     44EVENT_ARGS_NOT_PROVIDED = """
     45Event commands need arguments provided:
     46/event <when> <where>
     47/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment
     48"""
     49EVENT_WHERE_NOT_PROVIDED = """
     50Second <where> argument is not provided and previous event doesn't has it.
     51/event <when> <where>
     52/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment
     53"""
     54
     55EVENT_CREATED = "Event at {when} was created"
     56EVENT_EDITED = "Event at {when} was modified"
     57EVENTS_LIST = "[{finished}] \"{movie}\" by {user} at {when} in {where}\n"
     58EVENT_MOVIE_NOT_CHOOSEN = "You should choose a film first using /movie <imdb_id>"
     59EVENT_MOVIE_NOT_SET = "<None>"
     60EVENT_USER_HAD_EVENT = "User {user} have already finished event, so he can't choose twice. See /next or /list"
     61NO_EVENTS = "No events"
    3762
    3863UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs."
Note: See TracChangeset for help on using the changeset viewer.