source: python-cinema-club-bot/strings.py@ 99cecda

Last change on this file since 99cecda was 23bddf3, checked in by Mikhail Kirillov <w96k@…>, on Oct 10, 2024 at 6:20:52 AM

Task #10. /announce command

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[71efb80]1# This file is part of python-cinema-club-bot
2# contributed in 2024 by Mikhail Kirillov (~w96k) <w96k@runbox.com>
3
4# To the extent possible under law, the author(s) have dedicated all copyright
5# and related and neighboring rights to this software to the public domain
6# worldwide. This software is distributed without any warranty.
7
8# You should have received a copy of the CC0 Public Domain Dedication along
9# with this software. If not, see:
10# <http://creativecommons.org/publicdomain/zero/1.0/>
11
[0d48ea2]12INVALID_COMMAND = "Invalid command. Available commands: /add /list /remove /chooser /about"
[6623428]13
14MOVIE_ANOTHER_USER = "Movie should choose another user ({user})"
[9be02d9]15MOVIE_NOT_PROVIDED = "Movie IMDB id is not provided. Use /movie <imdb_id>"
[6623428]16MOVIE_NOT_FOUND = "Movie not found on IMDB"
17EXPECTED_ONE_MOVIE = "Expected only one movie"
18FETCHING_MOVIE = "Movie with ID {id} is being fetched: https://imdb.com/title/tt{id}/"
19FETCHING_ERROR = "Couldn't fetch movie or it is not found. Provide IMDB id, for example: 0133093"
20MOVIE_REMOVE = "Movie \"{title}\" with id {id} has been removed"
21MOVIE_SET = "Movie \"{title}\" proposed by {user} is succesfully set as next to watch"
[9be02d9]22MOVIES_LIST = "\"{title}\" IMDB:{id} by {user} \n"
[23bddf3]23NO_MOVIES = "No movies. You can add movie if you are next to choose (see /next). Too add a movie use /movie <imdb_id>"
[6623428]24
25USER_NOT_FOUND = "Provided user ({user}) not found. Check /list"
[0d67456]26USER_NOT_PROVIDED = "User(s) is not provided"
[cc34991]27EXPECTED_ONE_USER = "Expected only one user"
[6623428]28ADD_MORE_USERS = "There is no users added. You can add people who can choose movies using /add nickname"
29NEXT_MOVIE_USER = "Next movie choice is up to {user}"
[23bddf3]30NEXT_MOVIE = " and they have choosen to watch \"{movie}\""
[6623428]31
[0d48ea2]32USER_ADD = "User {user} has been added"
33USERS_ADDED = "Users have been added successfully. Use /list to view."
34USER_REMOVE = "User {user} has been removed. Use /list to view."
35USERS_REMOVED = "Users has been removed"
36USER_SET = "Users have been set successfully. Use /list to view."
[6623428]37USER_CHOOSE = "Next movie should choose: {user}"
[9be02d9]38NO_USERS = "No user added. You can add users by /add <nickname1> <nickname2>"
39
40EVENT_INVALID_DATETIME = """
41Can't parse provided datetime. It should comply template like this:
42/event 1.08.2024/18:00 <where>
43"""
[23bddf3]44EVENT_CANT_BE_IN_PAST = "Event can't happen in the past. You set {when}, but now is {today}"
[9be02d9]45EVENT_ARGS_NOT_PROVIDED = """
46Event commands need arguments provided:
47/event <when> <where>
48/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment
49"""
50EVENT_WHERE_NOT_PROVIDED = """
51Second <where> argument is not provided and previous event doesn't has it.
52/event <when> <where>
53/event 1.08.2024/18:00 84 Erevan Str 1st entrance 7 floor 451 apartment
54"""
55
[23bddf3]56EVENT_CREATED = "Event \"{movie}\" at {when} was created"
57EVENT_EDITED = "Event \"{movie}\" at {old_when} in {old_where} was modified to {when} in {where}"
[9be02d9]58EVENTS_LIST = "[{finished}] \"{movie}\" by {user} at {when} in {where}\n"
59EVENT_MOVIE_NOT_CHOOSEN = "You should choose a film first using /movie <imdb_id>"
60EVENT_MOVIE_NOT_SET = "<None>"
61EVENT_USER_HAD_EVENT = "User {user} have already finished event, so he can't choose twice. See /next or /list"
[23bddf3]62NO_EVENTS = "No events."
[0d48ea2]63
[6623428]64UNDEFINED_ERROR = "Exception: something unexpected happened. Check the logs."
[23bddf3]65
66ANNOUNCEMENT_FINISHED_EVENT = "There is no planned events. Create one using /event <when> <where>"
67ANNOUNCEMENT_TEMPLATE = """
68{intro}
69
70Movie: {movie_title}
71Choosen by: @{user}
72Runtime: {movie_runtime} minutes
73
74When: {when}
75Where: {where}
76
77Rating: {rating}
78Genres: {genres}
79
80https://imdb.com/title/tt{movie_id}/
81"""
82
83ABOUT = """
84v{version} #{commit}
85
86python-cinema-club-bot is a bot for Telegram specialized for managing cinema club activities. This software is released as Public Domain using CC0 license.
87
88Project information: http://57.129.46.169/trac/wiki/python-cinema-club-bot
89Source code: http://57.129.46.169/cgit/python-cinema-club-bot/
90
91Contributed in 2024 by Mikhail Kirillov (~w96k) <w96k@runbox.com>
92
93To 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.
94
95You 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/>
96 """
Note: See TracBrowser for help on using the repository browser.