mirror of
https://github.com/ChenXu233/nonebot_plugin_dialectlist.git
synced 2024-11-23 23:55:29 +08:00
Merge branch 'master' of https://github.com/X-Skirt-X/nonebot_plugin_dialectlist
This commit is contained in:
commit
06a6f7ce0d
@ -12,6 +12,8 @@ nonebot-plugin-dialectlist
|
||||
\>💬**看看群友们这些天在群里水了多少话**💬<
|
||||
</div>
|
||||
|
||||
# 注意,目前的版本还不能和更新后的chatrecorder使用,正在火速修补bug中💥
|
||||
|
||||
## 版本
|
||||
|
||||
### V1.0
|
||||
@ -68,6 +70,9 @@ nonebot-plugin-dialectlist
|
||||
💭也可以不进行配置,这将会使插件按照默认配置运行
|
||||
|
||||
### ⚠ 注意!!
|
||||
|
||||
需要提前安装好[GTK+](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer)
|
||||
|
||||
在windows以外的环境中可能不存在插件默认的字体!请自行改为系统中拥有的字体!
|
||||
|
||||
## 命令
|
||||
@ -80,6 +85,8 @@ nonebot-plugin-dialectlist
|
||||
|
||||
-`/本周群话痨排行榜` ————看看本周的群友发了多少消息!
|
||||
|
||||
-`/上周群话痨排行榜` ————看看上周的群友发了多少消息!
|
||||
|
||||
-`/本月群话痨排行榜` ————看看这个月的群友发了多少消息!
|
||||
|
||||
-`/年度群话痨排行榜` ————看看今年的群友发了多少消息!
|
||||
|
@ -72,6 +72,7 @@ rankings = on_command(
|
||||
"今日群话痨排行榜",
|
||||
"昨日群话痨排行榜",
|
||||
"本周群话痨排行榜",
|
||||
"上周群话痨排行榜",
|
||||
"本月群话痨排行榜",
|
||||
"年度群话痨排行榜",
|
||||
"历史群话痨排行榜",
|
||||
@ -112,6 +113,13 @@ async def _group_message(
|
||||
hour=0, minute=0, second=0, microsecond=0
|
||||
) - timedelta(days=dt.weekday())
|
||||
state["stop"] = dt
|
||||
elif command == "上周群话痨排行榜":
|
||||
state["start"] = dt.replace(
|
||||
hour=0, minute=0, second=0, microsecond=0
|
||||
) - timedelta(days=dt.weekday() + 7)
|
||||
state["stop"] = dt.replace(
|
||||
hour=0, minute=0, second=0, microsecond=0
|
||||
) - timedelta(days=dt.weekday())
|
||||
elif command == "本月群话痨排行榜":
|
||||
state["start"] = dt.replace(day=1, hour=0, minute=0, second=0, microsecond=0)
|
||||
state["stop"] = dt
|
||||
|
Loading…
Reference in New Issue
Block a user