Skip to content

Commit

Permalink
Merge pull request #33 from This-is-XiaoDeng/master
Browse files Browse the repository at this point in the history
修复 OneBot V12 中的部分问题
  • Loading branch information
This-is-XiaoDeng authored Apr 5, 2024
2 parents f4b4bf8 + e59c5b5 commit 263ff81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions network/v12/ws_reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ async def connect(self) -> None:
"version": dict(impl="onedisc", version=VERSION, onebot_version="12")
}
))
asyncio.create_task(self.setup_receive_loop())

async def setup_receive_loop(self) -> None:
while not hasattr(self, "reconnect_task"):
Expand Down
2 changes: 1 addition & 1 deletion utils/event/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_event_object(
"id": str(uuid.uuid1()),
"self": {
"platform": "discord",
"user_id": client.user.id,
"user_id": str(client.user.id),
},
"time": _time or time.time(),
"type": _type,
Expand Down

0 comments on commit 263ff81

Please sign in to comment.