[+] touch: Validate name does not exist in the database

This commit is contained in:
Hykilpikonna
2020-11-22 13:55:00 -05:00
parent 59f253d087
commit 7864c3c17b
+3
View File
@@ -50,6 +50,9 @@ def touch(update, context):
if not name.isalnum():
return "只能有数字或者字母哦w"
if name in database.userRequests[user]:
return "%s 已经存在w" % name
def rm(update, context):
chat = update.effective_chat