From 7e2b095b031623301c29de963de2f240bac4faa5 Mon Sep 17 00:00:00 2001 From: ZhehaoMi <1125263974@qq.com> Date: Sat, 6 Oct 2018 21:31:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=9C=AA=E7=9F=A5?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index e90fb79..0bf745d 100644 --- a/main.py +++ b/main.py @@ -101,6 +101,8 @@ 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 From c696aa72375594f6f42369cf06bb5855f3d3cd37 Mon Sep 17 00:00:00 2001 From: ZhehaoMi <1125263974@qq.com> Date: Sat, 6 Oct 2018 21:32:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 0dac4f2..54f0e3b 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": [ { -- Gitee