From ac40869349d65771c4fcd6dd29b80afa458f0700 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 22 Nov 2020 13:59:18 -0500 Subject: [PATCH] [M] Change to english message for now --- src/commands.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/commands.py b/src/commands.py index eeb2652..eb4e11d 100644 --- a/src/commands.py +++ b/src/commands.py @@ -54,23 +54,26 @@ def touch(update, context): # No args if len(context.args) != 2: - return "用法: /touch " + return "Usage: /touch " # Validate name name = context.args[0] if not name.isalnum(): - return "只能有数字或者字母哦w" + return "You can only use alphanumeric names!" if name in database.userRequests[user]: - return "%s 已经存在w" % name + return "%s already exists" % name # Validate url url = context.args[1] if re.match(urlValidator, url) is None: - return "%s 格式检查不通过w" % url + return "%s cannot pass the format check" % url # Create database.userRequests[user][name] = RequestConfiguration(url) + database.save() + + return "%s is successfully created!" % name def rm(update, context):