FengLiuFeseliud/pycqBot

事件无法正常处理(?

Closed this issue · 2 comments

不知道是否我写错了什么,代码如下

def notice_group_upload(message: Message):
    print(2)


bot = cqapi.create_bot(
    options={
        ....(省略)
    },
)

bot.notice_group_upload = notice_group_upload
bot.start

on_group_msg这个event可以正常响应,其他的却都没有任何反应,试了好几个其他event皆如此

DEBUG的日志登记下有这样的日志

[2023-03-23 09:45:46,472][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...15}},"interval":5000}\n' [404 bytes]
[2023-03-23 09:45:51,473][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...15}},"interval":5000}\n' [404 bytes]
[2023-03-23 09:45:53,754][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"notice","notice_type":"group_uplo...343030343539613938"}}\n' [486 bytes]
[2023-03-23 09:45:56,471][MainThread/DEBUG] PyCqBot: < TEXT '{"post_type":"meta_event","meta_event_type":"he...53}},"interval":5000}\n' [404 bytes]

说明是正常接收事件了,但并没有处理,怪

没事了,我是**