diff --git a/config.py b/config.py index f55826ca8f28ed184839a4f8e588dc9945d20f8a..e39a500875acdd9b37996bfeca52b17521c8c91f 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 50fb78a7b3161707d0c0cbc6fcdb8451e3151c7a..811d6141e1b3aabd5b8b0c6eb354c7bc712f192d 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)