mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
更新 platform.py
This commit is contained in:
parent
96385dc10a
commit
0493368c19
@ -534,11 +534,11 @@ class BroadcastEngine:
|
|||||||
try:
|
try:
|
||||||
bot = nonebot.get_bot()
|
bot = nonebot.get_bot()
|
||||||
self.bot_list.append(bot)
|
self.bot_list.append(bot)
|
||||||
logger.debug(
|
logger.warning(
|
||||||
f"广播任务未传入Bot对象,使用默认Bot {bot.self_id}", log_cmd
|
f"广播任务未传入Bot对象,使用默认Bot {bot.self_id}", log_cmd
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
raise ValueError("当前没有可用的Bot对象...", log_cmd)
|
raise ValueError("当前没有可用的Bot对象...", log_cmd) from e
|
||||||
|
|
||||||
async def call_check(self, bot: Bot, group_id: str) -> bool:
|
async def call_check(self, bot: Bot, group_id: str) -> bool:
|
||||||
"""运行发送检测函数
|
"""运行发送检测函数
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user