Skip to content

Commit

Permalink
✨ Feature: connect bot after startup complete (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramRipper authored Jan 24, 2024
1 parent ba539a8 commit 3265897
Show file tree
Hide file tree
Showing 4 changed files with 612 additions and 544 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/onebot/v11/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _setup(self) -> None:
),
)
else:
self.driver.on_startup(self._start_forward)
self.on_ready(self._start_forward)
self.driver.on_shutdown(self._stop_forward)

@override
Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/onebot/v12/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _setup(self) -> None:
),
)
else:
self.driver.on_startup(self._start_forward)
self.on_ready(self._start_forward)
self.driver.on_shutdown(self._stop_forward)

@override
Expand Down
Loading

0 comments on commit 3265897

Please sign in to comment.