mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-09-07 01:46:24 +00:00
✨ 添加对主流框架的消息io支持
This commit is contained in:
@ -69,6 +69,8 @@ async def get_stat_msg_image(
|
||||
condition,
|
||||
*condition_args
|
||||
)
|
||||
if not msg_rows:
|
||||
msg_rows = []
|
||||
timestamps = []
|
||||
msg_count = []
|
||||
msg_rows.sort(key=lambda x: x.time)
|
||||
|
@ -98,8 +98,10 @@ async def _(result: Arparma, event: T_MessageEvent, bot: Bot):
|
||||
bot_id = result.other_args.get("bot_id")
|
||||
user_id = result.other_args.get("user_id")
|
||||
|
||||
if group_id in ["current", "c"]:
|
||||
if group_id in ["current", "c"] and hasattr(event, "group_id"):
|
||||
group_id = str(event_utils.get_group_id(event))
|
||||
else:
|
||||
group_id = "all"
|
||||
|
||||
if group_id in ["all", "a"]:
|
||||
group_id = "all"
|
||||
|
Reference in New Issue
Block a user