1
0
forked from bot/app

消息统计新增指定用户选项

This commit is contained in:
远野千束 2024-05-24 23:46:24 +08:00
parent 5bc2725d1b
commit b26f8e0d24

View File

@ -80,7 +80,7 @@ async def get_stat_msg_image(duration: int, period: int, group_id: str = None, b
{ {
"name": ulang.get("stat.message") "name": ulang.get("stat.message")
+ f" Period {convert_seconds_to_time(period)}" + f" Duration {convert_seconds_to_time(duration)}" + f" Period {convert_seconds_to_time(period)}" + f" Duration {convert_seconds_to_time(duration)}"
+ (f" Group {group_id}" if group_id else "") + (f" Bot {bot_id}" if bot_id else ""), + (f" Group {group_id}" if group_id else "") + (f" Bot {bot_id}" if bot_id else "") + (f" User {user_id}" if user_id else ""),
"times": timestamps, "times": timestamps,
"counts": msg_count "counts": msg_count
} }