mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Update statistics_hook.py
This commit is contained in:
parent
46895e4216
commit
05f8d52f63
@ -33,6 +33,15 @@ except (FileNotFoundError, ValueError):
|
|||||||
'start_time': str(datetime.now().date()),
|
'start_time': str(datetime.now().date()),
|
||||||
'day_index': 0
|
'day_index': 0
|
||||||
}
|
}
|
||||||
|
if not _prefix_count_dict.get('day_index'):
|
||||||
|
tmp = _prefix_count_dict.copy()
|
||||||
|
_prefix_count_dict = {'total_statistics': tmp['total_statistics'], 'day_statistics': {
|
||||||
|
'total': {},
|
||||||
|
}, 'week_statistics': {
|
||||||
|
'total': {},
|
||||||
|
}, 'month_statistics': {
|
||||||
|
'total': {},
|
||||||
|
}, 'start_time': str(datetime.now().date()), 'day_index': 0}
|
||||||
|
|
||||||
|
|
||||||
# 添加命令次数
|
# 添加命令次数
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user