From a94245c7e6f26ccd95831f5ea5f1a3040337474f Mon Sep 17 00:00:00 2001 From: ZhehaoMi <1125263974@qq.com> Date: Sat, 6 Oct 2018 21:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E4=BB=A4=E5=89=8D?= =?UTF-8?q?=E7=BC=80=EF=BC=8C=E6=81=A2=E5=A4=8D=E6=9C=AA=E7=9F=A5=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- main.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index f55826c..e39a500 100644 --- a/config.py +++ b/config.py @@ -21,7 +21,7 @@ OIWIKI_LIST_URL = "https://raw.githubusercontent.com/ZhehaoMi/countdown/master/w #一句话被重复几次后会进行复读 REPEAT_TIME_LIMIT=3 #指令前缀 -COMMAND_PREFIX=":" +COMMAND_PREFIX=["!!","--"] SAMPLE = { "718459861": [ { diff --git a/main.py b/main.py index 50fb78a..811d614 100644 --- a/main.py +++ b/main.py @@ -92,6 +92,9 @@ def handle_message(context): if command[0] in commands: commands[command[0]][1].__call__( bot, context, command) + else: + bot.send(context,"未知指令: %s"%command[0]) + if text is not None: for listener in message_listeners: listener.__call__(bot,context,text) -- Gitee