diff --git a/src/commands.py b/src/commands.py index 56f79fa..2bddbca 100644 --- a/src/commands.py +++ b/src/commands.py @@ -41,6 +41,15 @@ def touch(update, context): chat = update.effective_chat user = database.checkUser(chat.id) + # No args + if len(context.args) != 2: + return "用法: /touch " + + # Validate name + name = context.args[0] + if not name.isalnum(): + return "只能有数字或者字母哦w" + def rm(update, context): chat = update.effective_chat