Skip to content

Commit

Permalink
chore: 删除部分注释代码
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jan 23, 2024
1 parent ad5ef95 commit 2f87796
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions pkg/qqbot/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion pkg/qqbot/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 2f87796

Please sign in to comment.