You've already forked Travel-Agent
192 lines
6.3 KiB
Python
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..."
|