mirror of
https://github.com/ChenXu233/nonebot_plugin_dialectlist.git
synced 2026-01-26 13:42:00 +00:00
Compare commits
3 Commits
V2.6.1
...
0348a5d66c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0348a5d66c | ||
|
|
aff02f2666 | ||
|
|
2f725e0808 |
45
README.md
45
README.md
@@ -75,6 +75,8 @@ dialectlist__string_format: str = "第{index}名:\n{nickname},{chatdatanum}条
|
|||||||
|
|
||||||
> 在旧版插件(2.0.0 以下)中,dialectlist 与后面的配置项只隔了一个下划线,若更新到新版本以后需要俩个下划线。
|
> 在旧版插件(2.0.0 以下)中,dialectlist 与后面的配置项只隔了一个下划线,若更新到新版本以后需要俩个下划线。
|
||||||
|
|
||||||
|
> 由于插件依赖chatrecord多次引入爆炸性修改,建议在遇到问题后优先尝试降级chatrecord插件
|
||||||
|
|
||||||
## 🗨命令
|
## 🗨命令
|
||||||
__!!注意!!__
|
__!!注意!!__
|
||||||
新版本指令调用方式改变,改为更易理解也更好打的 B 话榜。
|
新版本指令调用方式改变,改为更易理解也更好打的 B 话榜。
|
||||||
@@ -203,49 +205,6 @@ __!!注意!!__
|
|||||||
|
|
||||||
待补充。.....
|
待补充。.....
|
||||||
|
|
||||||
## 📖版本日志
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>点我展开</summary>
|
|
||||||
|
|
||||||
### V1.0
|
|
||||||
|
|
||||||
- 看看群里群友能有多话痨
|
|
||||||
|
|
||||||
### V1.1
|
|
||||||
|
|
||||||
- 支持频道咯!(*^_^*)
|
|
||||||
|
|
||||||
### V1.2
|
|
||||||
|
|
||||||
- 排行榜可视化
|
|
||||||
|
|
||||||
### V1.3
|
|
||||||
|
|
||||||
- 添加了一些可配置项
|
|
||||||
|
|
||||||
### V1.4
|
|
||||||
|
|
||||||
- 适配新版本的 chatrecorder, 暂时停止频道支持
|
|
||||||
|
|
||||||
### V2.0
|
|
||||||
|
|
||||||
- 理论支持全平台!暂停图片支持。
|
|
||||||
|
|
||||||
|
|
||||||
### V2.1
|
|
||||||
|
|
||||||
- 恢复图片支持。
|
|
||||||
|
|
||||||
### V2.2
|
|
||||||
|
|
||||||
- 优化代码,添加一些新的可配置项。
|
|
||||||
|
|
||||||
### V2.4
|
|
||||||
|
|
||||||
- 添加一些新的可配置项。
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
### 👾题外话
|
### 👾题外话
|
||||||
~~整个项目快被我写成屎山了~~
|
~~整个项目快被我写成屎山了~~
|
||||||
|
|||||||
61
nonebot_plugin_dialectlist/migrations/873ad3421460_.py
Normal file
61
nonebot_plugin_dialectlist/migrations/873ad3421460_.py
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
"""empty message
|
||||||
|
|
||||||
|
迁移 ID: 873ad3421460
|
||||||
|
父迁移:
|
||||||
|
创建时间: 2025-03-29 14:30:11.910461
|
||||||
|
|
||||||
|
"""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from collections.abc import Sequence
|
||||||
|
|
||||||
|
import sqlalchemy as sa
|
||||||
|
from alembic import op
|
||||||
|
|
||||||
|
revision: str = "873ad3421460"
|
||||||
|
down_revision: str | Sequence[str] | None = None
|
||||||
|
branch_labels: str | Sequence[str] | None = ("nonebot_plugin_dialectlist",)
|
||||||
|
depends_on: str | Sequence[str] | None = None
|
||||||
|
|
||||||
|
|
||||||
|
def upgrade(name: str = "") -> None:
|
||||||
|
if name:
|
||||||
|
return
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
op.create_table(
|
||||||
|
"nonebot_plugin_dialectlist_messagecountcache",
|
||||||
|
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False),
|
||||||
|
sa.Column("time", sa.DateTime(), nullable=False),
|
||||||
|
sa.Column("session_id", sa.Integer(), nullable=False),
|
||||||
|
sa.Column("session_bnum", sa.Integer(), nullable=False),
|
||||||
|
sa.PrimaryKeyConstraint(
|
||||||
|
"id", name=op.f("pk_nonebot_plugin_dialectlist_messagecountcache")
|
||||||
|
),
|
||||||
|
info={"bind_key": "nonebot_plugin_dialectlist"},
|
||||||
|
)
|
||||||
|
with op.batch_alter_table(
|
||||||
|
"nonebot_plugin_dialectlist_messagecountcache", schema=None
|
||||||
|
) as batch_op:
|
||||||
|
batch_op.create_index(
|
||||||
|
batch_op.f("ix_nonebot_plugin_dialectlist_messagecountcache_session_id"),
|
||||||
|
["session_id"],
|
||||||
|
unique=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
def downgrade(name: str = "") -> None:
|
||||||
|
if name:
|
||||||
|
return
|
||||||
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
|
with op.batch_alter_table(
|
||||||
|
"nonebot_plugin_dialectlist_messagecountcache", schema=None
|
||||||
|
) as batch_op:
|
||||||
|
batch_op.drop_index(
|
||||||
|
batch_op.f("ix_nonebot_plugin_dialectlist_messagecountcache_session_id")
|
||||||
|
)
|
||||||
|
|
||||||
|
op.drop_table("nonebot_plugin_dialectlist_messagecountcache")
|
||||||
|
# ### end Alembic commands ###
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nonebot-plugin-dialectlist"
|
name = "nonebot-plugin-dialectlist"
|
||||||
version = "2.6.1"
|
version = "2.6.2"
|
||||||
description = "看看你群群友有多能说"
|
description = "看看你群群友有多能说"
|
||||||
authors = [
|
authors = [
|
||||||
{name = "Chen_Xu233", email = "woyerpa@outlook.com"},
|
{name = "Chen_Xu233", email = "woyerpa@outlook.com"},
|
||||||
]
|
]
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"nonebot-plugin-chatrecorder>=0.6.0",
|
"nonebot-plugin-chatrecorder>=0.6.0,<0.7.0",
|
||||||
"nonebot-plugin-orm[default]",
|
"nonebot-plugin-orm[default]",
|
||||||
"nonebot-plugin-apscheduler>=0.4.0",
|
"nonebot-plugin-apscheduler>=0.4.0",
|
||||||
"nonebot-plugin-alconna>=0.50.2",
|
"nonebot-plugin-alconna>=0.50.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user