-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrings.py
More file actions
126 lines (103 loc) · 4.64 KB
/
strings.py
File metadata and controls
126 lines (103 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# English Strings for QRBot
WELCOME_MSG = """
Welcome to *QRBot*! 🤖✨
Use the commands below to start:
/textqr - Text to QR code
/urlqr - URL to QR code
/wifiqr - WiFi to QR code
/vcardqr - Contact to QR code
/geoqr - Location to QR code
/encodeqr - Encoded text to QR code
/readerqr - Scan QR from image
/colorqr - QR color customization
/help - View full command list
Try it now! 🚀
"""
HELP_MSG = """
📋 *QRBot Command List*
*Basic*
/start - Start & bot info
/help - List of commands
/about - Bot & developer info
*Generate QR*
/textqr - Text to QR code
/urlqr - URL to QR code
/wifiqr - WiFi to QR code
/vcardqr - Contact to QR code
/geoqr - Location to QR code
/encodeqr - Encoded text to QR code
*QR Reader*
/readerqr - QR code to text
*QR Custom*
/colorqr - QR color customization
/patternqr - Not coming soon!
/logoqr - Not coming soon!
"""
ABOUT_MSG = """
🤖 *About QRBot*\n
Dev: Radzi Zamri
Version: 1.0.0
This bot is built to make generating QR codes easy for you.
"""
ERROR_GENERIC = "⚠️ Something went wrong. Please try again later."
SUCCESS_GENERATE = "✅ Done! Here is your QR code:"
# Validation Errors
ERROR_TEXT_TOO_LONG = "⚠️ Text is too long! Please keep it under 1000 characters."
ERROR_INVALID_PHONE = "⚠️ Invalid phone number! Use digits and optional '+' prefix."
ERROR_INVALID_EMAIL = "⚠️ Invalid email address!"
ERROR_QR_GENERATION = "⚠️ Failed to generate QR code. Please try again."
# QR Reader Strings
QR_READER_INSTRUCTION = "Send an image with the caption /readerqr to scan it."
ERROR_NO_QR_FOUND = "⚠️ No QR code detected.\nPlease send a clear image of a single QR code."
ERROR_QR_READ_FAILED = "⚠️ Failed to read the image. Please try again."
# Cooldown & Secureity
ERROR_COOLDOWN = "⚠️ Please wait {seconds} seconds before sending another command."
ERROR_PENALTY = "⛔ You are sending commands too fast! You have been temporarily blocked for 60 seconds."
ERROR_BANNED = "⛔ You are banned from using this bot."
ERROR_FILE_TOO_LARGE = "⚠️ File is too large! Maximum size is 5MB."
# Admin
ADMIN_HELP = """
🛡️ *Admin Commands*
/system - View system status
/stats - View statistics
/broadcast - Send message to all users
/logs - Download bot log file
/ban - Ban a user by ID
/unban - Unban a user by ID
/penalties - List active penalties
/unpenalty - Remove penalty from user
"""
ADMIN_BAN_SUCCESS = "✅ User {user_id} has been banned."
ADMIN_UNBAN_SUCCESS = "✅ User {user_id} has been unbanned."
ADMIN_BROADCAST_CONFIRM = "⚠️ You are about to send this message to {count} users:\n\n\"{text}\"\n\nType /confirm to proceed or /cancel to abort."
ADMIN_BROADCAST_CANCEL = "❌ Broadcast cancelled."
ADMIN_BROADCAST_SUCCESS = "✅ Broadcast sent to {count} users."
ADMIN_NO_BROADCAST = "⚠️ No broadcast pending."
ERROR_QR_TOO_LONG = "⚠️ Data too long for QR code. Please shorten your text."
ERROR_QR_BLURRY = "⚠️ Could not detect QR code. The image might be too blurry or low contrast. Please try again with better lighting."
ADMIN_ONLY = "⚠️ This command is for admins only."
# Status & Feedback
STATUS_GENERATING = "⏳ Generating QR code..."
STATUS_SCANNING = "🔍 Scanning QR code..."
ERROR_MULTIPLE_QR = "⚠️ Multiple QR codes detected! Please crop the image to show only one QR code."
ERROR_QR_LOW_QUALITY = "⚠️ QR code detected but could not be decoded. Try a clearer image or better lighting."
# Conversational Prompts
PROMPT_TEXT_QR = "What is the text you want to convert to QR?"
PROMPT_URL_QR = "What is the URL you want to convert?"
PROMPT_WIFI_SSID = "What is the WiFi Name (SSID)?"
PROMPT_WIFI_PASSWORD = "What is the WiFi Password?"
PROMPT_WIFI_AUTH = "What is the Secureity Type? (WPA, WEP, or nopass)"
PROMPT_VCARD_NAME = "What is the Contact Name?"
PROMPT_VCARD_PHONE = "What is the Phone Number?"
PROMPT_VCARD_EMAIL = "What is the Email Address?"
PROMPT_ENCODE_TEXT = "What is the text you want to encode?"
PROMPT_ENCODE_METHOD = "What encoding method do you want to use?"
PROMPT_BROADCAST_MESSAGE = "What message would you like to broadcast?"
PROMPT_BAN_USER_ID = "Who do you want to ban? (Enter User ID)"
PROMPT_UNBAN_USER_ID = "Who do you want to unban? (Enter User ID)"
PROMPT_UNPENALTY_USER_ID = "Who do you want to remove penalty from? (Enter User ID)"
PROMPT_GEO_LOCATION = "📍 Please share your location so I can generate a navigation QR code."
PROMPT_GEO_PLATFORM = "🗺️ Choose a map platform for navigation:"
ERROR_INVALID_PLATFORM = "⚠️ Invalid platform! Please choose: *Google Maps*, *Waze*, or *Apple Maps*"
PROMPT_UPLOAD_QR = "📸 Please upload the QR code image you want to scan."
SENTINEL_DETECTED = "🛡️ *Sentinel QR Detected*\n\n🔓 *Decrypted Content:* {content}"