diff --git a/pkg/qqbot/manager.py b/pkg/qqbot/manager.py index ffb4e806..26769e43 100644 --- a/pkg/qqbot/manager.py +++ b/pkg/qqbot/manager.py @@ -157,10 +157,6 @@ async def friend_message_handler(): await self.on_person_message(event) asyncio.create_task(friend_message_handler()) - # TODO delete this - # context.get_thread_ctl().submit_user_task( - # friend_message_handler, - # ) self.adapter.register_listener( FriendMessage, on_friend_message @@ -184,10 +180,6 @@ async def stranger_message_handler(): await self.on_person_message(event) asyncio.create_task(stranger_message_handler()) - # TODO delete this - # context.get_thread_ctl().submit_user_task( - # stranger_message_handler, - # ) # nakuru不区分好友和陌生人,故仅为yirimirai注册陌生人事件 if config['msg_source_adapter'] == 'yirimirai': self.adapter.register_listener( @@ -213,11 +205,6 @@ async def group_message_handler(event: GroupMessage): await self.on_group_message(event) asyncio.create_task(group_message_handler(event)) - # TODO delete this - # context.get_thread_ctl().submit_user_task( - # group_message_handler, - # event - # ) self.adapter.register_listener( GroupMessage, on_group_message diff --git a/pkg/qqbot/process.py b/pkg/qqbot/process.py index 9d4d63c1..72788581 100644 --- a/pkg/qqbot/process.py +++ b/pkg/qqbot/process.py @@ -74,7 +74,6 @@ async def process_message(launcher_type: str, launcher_id: int, text_message: st text_message = text_message.strip() - # 为强制消息延迟计时 start_time = time.time()