From 2e4020f0f8860cda995a6ff98f752c56bc3a13e0 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Nov 2020 14:04:16 -0500 Subject: [PATCH] [S] Bold text --- src/commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands.py b/src/commands.py index eb4e11d..829bb8c 100644 --- a/src/commands.py +++ b/src/commands.py @@ -59,21 +59,21 @@ def touch(update, context): # Validate name name = context.args[0] if not name.isalnum(): - return "You can only use alphanumeric names!" + return "*Error:* You can only use alphanumeric names!" if name in database.userRequests[user]: - return "%s already exists" % name + return "*Error:* %s already exists" % name # Validate url url = context.args[1] if re.match(urlValidator, url) is None: - return "%s cannot pass the format check" % url + return "*Error:* %s cannot pass the format check" % url # Create database.userRequests[user][name] = RequestConfiguration(url) database.save() - return "%s is successfully created!" % name + return "*%s* is successfully created!" % name def rm(update, context):