mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-19 02:12:46 +08:00
refactor(protocols): update protocol client implementations
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
"""AstrBot Development Mode .
|
||||
|
||||
核心运行时测试.
|
||||
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
|
||||
import anyio
|
||||
import click
|
||||
|
||||
|
||||
@click.command()
|
||||
def dev() -> None:
|
||||
"""启动开发模式."""
|
||||
from astrbot._internal.runtime import bootstrap
|
||||
|
||||
try:
|
||||
anyio.run(bootstrap, backend="asyncio")
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(0)
|
||||
Reference in New Issue
Block a user