Files
Travel-Agent/app/messages.py
T

192 lines
6.3 KiB
Python

# flake8: noqa
# Menu
MENU = "<b>Menu:</b>"
# Notes
NOTES = "πŸ“ <b>Notes:</b>\n"
NOTE_DETAIL = (
"πŸ“ <b>Note detail:</b>\n\n"
"\tFile name: <b>{file_name}</b>\n"
"\tFile type: <b>{file_type}</b>\n"
"\tPublic: <b>{public}</b>"
)
ADD_NOTE = (
"✏️ Send me a file, photo, video, or voice message to add a note."
"\n<i>Enter /cancel to cancel creating.</i>"
)
NOTE_ADDED = "βœ… Note <b>{file_name}</b> added successfully."
NOTE_DELETED = "❌ Note <b>{file_name}</b> deleted."
# Locations
LOCATIONS = "πŸ—ΊοΈ <b>Locations:</b>"
LOCATION_DELETED = "❌ Location deleted."
LOCATION_DETAIL = (
"πŸ—ΊοΈ <b>Location detail:</b>\n\n"
"\t<b>Location:</b> {location}\n"
"\t<b>Date start:</b> {date_start}\n"
"\t<b>Date end:</b> {date_end}"
)
LOCATION_WEATHER = (
"🌀️ <b>{location} weather:</b>\n\n"
"\t<b>☁️ Weather:</b> {weather_main}\n"
"\t<b>🌑️ Current temperature:</b> {temp} °C\n"
"\t<b>πŸ€— Feels like:</b> {feels_like} Β°C\n"
"\t<b>❄️ Min. temperature:</b> {temp_min} Β°C\n"
"\t<b>πŸ”₯ Max. temperature:</b> {temp_max} Β°C\n"
"\t<b>⬇️ Pressure:</b> {pressure} hektopascals\n"
"\t<b>πŸ’¨ Humidity:</b> {humidity}%\n"
)
# Sights
SIGHTS_HEADER = "πŸ—ΊοΈ <b>Sights:</b>\n"
SIGHTS_FOOTER = (
"Found {sights_count} sights within {distance} m from: <b>{location}</b>."
)
NO_SIGHTS_FOUND = (
"No sights found within {distance} m from: <b>{location}</b>."
)
SIGHT_DETAIL = "πŸ—ΊοΈ <b>Sight detail:</b>\n\n"
# Location Creation
CREATE_LOCATION = "✈️ Lets create a new location!"
ENTER_LOCATION = (
"Enter location:\n"
"<i>Format: country, city, ... etc</i>\n"
"<i>Example: Kremlin, Moscow, Russia</i>\n"
"<i>Enter /cancel to cancel creating.</i>"
)
CONFIRM_LOCATION = "Is this location correct: <b>{location}</b>?"
CONFIRMATION_REJECTED = (
"❌ Confirmation rejected. Please re-enter the location."
)
OVERLAPPING_LOCATION = "Dates overlap with another location in the same travel(enter /cancel if you can't fix this)."
ENTER_LOCATION_DATE_START = (
"Enter location start datetime(in UTC) in this format:\n"
"<i>Format: YYYY-MM-DD HH:MM</i>\n"
"<i>Example: 2022-01-01 00:00</i>"
)
ENTER_LOCATION_DATE_END = (
"Enter location end datetime(in UTC) in this format:\n"
"<i>Format: YYYY-MM-DD HH:MM</i>\n"
"<i>Example: 2022-01-01 00:00>"
)
INVALID_DATE_END = "End date can't be earlier or equal to start date."
LOCATION_ADDED = "βœ… Location added"
# Travel Management
DELETED_TRAVEL = "βœ… Travel deleted"
TRAVELS = (
"πŸ“ƒ <b>Travels:</b>"
"\n<i>πŸ‘‘ - owner</i>"
)
NO_TRAVELS = "No travels yet. You can create one with /create_travel command."
CREATE_TRAVEL = (
"🧳 Let's create a new travel!\n"
"<i>Enter /cancel to cancel creating.</i>"
)
TRAVEL_UPDATED = "βœ… Travel updated"
EDIT_TRAVEL_DESCRIPTION = (
"Enter travel description (enter /skip if you want to set it to None):\n"
"<i>Maximum length: 100 characters</i>"
)
INPUT_TRAVEL_TITLE = (
"Enter travel title:\n"
"<i>Maximum length: 30 characters</i>"
)
INPUT_TRAVEL_CALLBACK = (
"All right, travel <b>{key}</b> is set to: <b>{value}</b>"
)
INPUT_TRAVEL_DESCRIPTION = (
"Enter travel description (enter /skip if you want to skip this step):\n"
"<i>Maximum length: 100 characters</i>"
)
INPUT_TRAVEL_DESCRIPTION_SKIPPED = "βœ… Sure. You can always fill it later."
TRAVEL_CREATED = "Travel <b>{title}</b> successfully created! You can now view and edit it in the travels list (/travels command)."
ACTION_CANCELED = "❌ Action canceled"
TRAVEL_DETAIL = (
"πŸ“ <b>Travel detail</b>\n\n"
"\tID: <b>{travel_id}</b>\n"
"\tTitle: <b>{title}</b>\n"
"\tDescription: <b>{description}</b>\n"
)
# User Interaction
WELCOME_MESSAGE = "Hello, <b>{name}</b>! Welcome to the ✈️ Travel Agent bot! Let's start our journey by filling out some information about you."
WELCOME_AGAIN_MESSAGE = "Hello, <b>{name}</b>! Welcome back to the ✈️ Travel Agent bot! If you get lost, you can always call the /help command for assistance."
HELP_MESSAGE = (
"Welcome to the ✈️ Travel Agent bot! Here is a list of commands you can use:\n\n"
"/start - Start the bot\n"
"/help - Show this message\n"
"/menu - Show the main menu\n"
"/profile - View and edit your profile\n"
"/create_travel - Create a new travel\n"
"/travels - View and edit your travels\n"
"/cancel - Cancel the current action\n\n"
"❓ If you have any questions/issues, feel free to contact us via @itq_travel_agent_support_bot on Telegram."
)
REGISTERED_MESSAGE = (
"You have successfully registered. Welcome to the ✈️ Travel Agent bot!\n"
"You can view and edit your profile using the /profile command."
)
INPUT_USERNAME = (
"Enter your username (this will be used to interact with other users):\n"
"<i>Allowed characters: a-z, A-Z, 0-9, _</i>\n"
"<i>Length: 5-20 characters</i>"
)
INPUT_AGE = (
"Enter your age:\n"
"<i>Range: 13-120</i>"
)
INPUT_SEX = (
"Enter your sex:\n"
"<i>Options: Male or Female</i>"
)
INPUT_BIO = (
"Enter your bio (enter /skip if you want to skip this step):\n"
"<i>Maximum length: 100 characters</i>"
)
INPUT_BIO_SKIPPED = "βœ… Sure. You can always fill it later."
INPUT_LOCATION = (
"Enter your location in this format:\n"
"<i>Format: country, city</i>\n"
"<i>Example: Russia, Moscow</i>"
)
INPUT_CALLBACK = "βœ… All right, your <b>{key}</b> is set to: <b>{value}</b>"
VALIDATION_ERROR = "❌ Invalid input. Please try again."
CANCEL_CHANGE = "<i>Enter /cancel to cancel change.</i>"
# User Profile
PROFILE = (
"<b>πŸ‘€ Your profile:</b>\n\n"
"\tUsername: <b>{username}</b>\n"
"\tAge: <b>{age}</b>\n"
"\tSex: <b>{sex}</b>\n"
"\tCountry: <b>{country}</b>\n"
"\tCity: <b>{city}</b>\n"
"\tBio: <b>{bio}</b>\n"
"\tDate joined: <b>{date_joined} UTC</b>\n"
)
NOT_SET = "<i>Not set</i>"
EDIT_USERNAME = (
"Enter your username:\n"
"<i>Allowed characters: a-z, A-Z, 0-9, _</i>\n"
"<i>Length: 5-20 characters</i>"
)
EDIT_BIO = (
"Enter your bio (enter /skip if you want to set it to None):\n"
"<i>Maximum length: 100 characters</i>"
)
PROFILE_UPDATED = (
"βœ… Profile {key} updated\n"
"\t<i>Old value: {old_value}</i>\n"
"\t<i>New value: {new_value}</i>"
)
CHANGE_CANCELED = "❌ Change canceled"
# Processing
PROCESSING = "βŒ›οΈ Processing..."