diff --git a/config.py b/config.py index 0dac4f2e00032e9ec29dbb1da6730bdf0ea5a6fd..54f0e3b5bf73b1e38ae3a65b54a462c7443aabd5 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 e90fb79242f4c2b2b0ea583991066189345cf5c7..0bf745da839d836660a258e5bb023bd92da5e012 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)