From 6aafc4e506e2a9aa72955917f031241be4444c67 Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 01:09:50 -0800 Subject: bot: add command templates --- prompt/string.py | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) (limited to 'prompt') diff --git a/prompt/string.py b/prompt/string.py index a7bf0d1..eda0df8 100644 --- a/prompt/string.py +++ b/prompt/string.py @@ -1,9 +1,23 @@ PROMPT_START = "Hello, this is `checkin.bot`. \n\n" \ - "This is a Telegram bot with functionality similar to Foursquare Swarm, " \ - "but check in and post your location to the Fediverse (Mastodon/Pleroma) instead of Twitter.\n\n" \ - "Aware of privacy concerns, this bot will not store your location data." \ - "*Be safe and cautious when sharing your real time location on the web.* \n\n" \ - "Start using this bot by sharing your location using Telegram context menu to it." + "This is a Telegram bot with functionality similar to Foursquare Swarm, " \ + "but check in and post your location to the Fediverse (Mastodon/Pleroma) instead of Twitter.\n\n" \ + "Aware of privacy concerns, this bot will not store your location data." \ + "*Be safe and cautious when sharing your real time location on the web.* \n\n" \ + "Start using this bot by sharing your location using Telegram context menu to it." + +PROMPT_TOS = """ +By using this bot, you agree to the following terms of service:\n\n + +Data Collection + +Server Logs + +Server Locations + +Data Sharing +""" + + PROMPT_FEDI_LOGIN_WHERE_IS_INSTANCE = "Where is your home instance in the Fediverse? (e.g. `https://mastodon.social`)" PROMPT_FEDI_LOGIN = "Please login to your Fediverse account by clicking the link below:" PROMPT_CHOOSE_ACTION = "Use bot keyboard to choose an action" @@ -12,9 +26,21 @@ PROMPT_ADD_MEDIA = "You can continue adding photos, or press skip" PROMPT_LOCATION_KEYWORD = "You can input location search keywords or press skip" PROMPT_WAIT_LOCATION_CONFIRMATION_NO_NEARBY_POI = "No nearby places found. But you can input location name manually." PROMPT_WAIT_LOCATION_CONFIRMATION = "Where are you?" -PROMPT_HELP = "Use /start to test this bot." PROMPT_CANCELED = "Canceled" PROMPT_MAX_PHOTO_REACHED = "Cannot attach more than 4 medias, only first 4 will be posted" PROMPT_DONE = "Done" +PROMPT_HELP = "Available commands:" \ + "\n`/login` - login to Fediverse account. " \ + "You can use this command to login to multiple Fediverse accounts" \ + "\n`/list` - list current linked Fediverse accounts" \ + "\n`/logout [number]` - logout from specified Fediverse account, default logout from all" \ + "\n`/vis public|private|unlisted [number]` - " \ + "toggle visibility of your checkins on specified instances, default=private" \ + "\n`/tos` - show ToS message" \ + "\n`/cancel` - cancel current operation during checkins" + +PROMPT_LIST = "List all linked Fediverse accounts" +PROMPT_LOGOUT = "Choose Fediverse account to logout" +PROMPT_TOGGLE_VIS = "Choose visibility of your checkins on Fediverse" CALLBACK_SKIP = "Skip" -- cgit v1.2.3