mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-06-08 13:26:36 +00:00
Adjust comment
This commit is contained in:
parent
0e061b2e7f
commit
0172eae91e
@ -71,6 +71,9 @@ def get_bot() -> NoneBot:
|
|||||||
"""
|
"""
|
||||||
Get the NoneBot instance.
|
Get the NoneBot instance.
|
||||||
|
|
||||||
|
The result is ensured to be not None, otherwise an exception will
|
||||||
|
be raised.
|
||||||
|
|
||||||
:raise ValueError: instance not initialized
|
:raise ValueError: instance not initialized
|
||||||
"""
|
"""
|
||||||
if _bot is None:
|
if _bot is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user