nonebot-plugin-bili-dynamic 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/PKG-INFO +131 -127
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/README.md +5 -2
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/commands.py +760 -760
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/config.py +1 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/database.py +13 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/monitor.py +22 -2
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/qrcode_login.py +261 -261
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/PKG-INFO +131 -127
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/SOURCES.txt +2 -1
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/requires.txt +1 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/pyproject.toml +2 -1
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/setup.cfg +4 -4
- nonebot_plugin_bili_dynamic-0.2.2/tests/test_dynamic_expire.py +47 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/LICENSE +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/__init__.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/api.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/cookie_store.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/link_parser.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/models.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/renderer.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic/translator.py +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/dependency_links.txt +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/entry_points.txt +0 -0
- {nonebot_plugin_bili_dynamic-0.2.0 → nonebot_plugin_bili_dynamic-0.2.2}/nonebot_plugin_bili_dynamic.egg-info/top_level.txt +0 -0
|
@@ -1,127 +1,131 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: nonebot-plugin-bili-dynamic
|
|
3
|
-
Version: 0.2.
|
|
4
|
-
Summary: B站动态/直播推送 NoneBot2 插件(基于 Colter23/mirai 插件移植)
|
|
5
|
-
Author: Tony
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
|
|
8
|
-
Project-URL: Repository, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
|
|
9
|
-
Keywords: nonebot,nonebot2,bilibili,bili,dynamic,live,plugin
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
-
Classifier: Operating System :: OS Independent
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
-
Classifier: Topic :: Communications :: Chat
|
|
19
|
-
Requires-Python: >=3.9
|
|
20
|
-
Description-Content-Type: text/markdown
|
|
21
|
-
License-File: LICENSE
|
|
22
|
-
Requires-Dist: nonebot2>=2.2.0
|
|
23
|
-
Requires-Dist: nonebot-
|
|
24
|
-
Requires-Dist: nonebot-plugin-
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
Requires-Dist:
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
Requires-Dist:
|
|
32
|
-
Requires-Dist:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
|
120
|
-
|
|
121
|
-
| /bi
|
|
122
|
-
| /bi
|
|
123
|
-
| /bi
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nonebot-plugin-bili-dynamic
|
|
3
|
+
Version: 0.2.2
|
|
4
|
+
Summary: B站动态/直播推送 NoneBot2 插件(基于 Colter23/mirai 插件移植)
|
|
5
|
+
Author: Tony
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
|
|
8
|
+
Project-URL: Repository, https://github.com/TonyLiangP2010405/nonebot-plugin-bili-dynamic
|
|
9
|
+
Keywords: nonebot,nonebot2,bilibili,bili,dynamic,live,plugin
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Communications :: Chat
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: nonebot2>=2.2.0
|
|
23
|
+
Requires-Dist: nonebot-adapter-onebot>=2.4.0
|
|
24
|
+
Requires-Dist: nonebot-plugin-apscheduler>=0.5.0
|
|
25
|
+
Requires-Dist: nonebot-plugin-localstore>=0.7.0
|
|
26
|
+
Requires-Dist: httpx>=0.27.0
|
|
27
|
+
Requires-Dist: pillow>=10.0.0
|
|
28
|
+
Requires-Dist: skia-python>=87.5
|
|
29
|
+
Requires-Dist: qrcode[pil]>=7.4.2
|
|
30
|
+
Requires-Dist: tortoise-orm[accel]>=0.21.0
|
|
31
|
+
Requires-Dist: aerich>=0.7.0
|
|
32
|
+
Requires-Dist: pydantic>=2.0.0
|
|
33
|
+
Requires-Dist: typing-extensions>=4.0.0
|
|
34
|
+
Provides-Extra: render
|
|
35
|
+
Requires-Dist: playwright>=1.40.0; extra == "render"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
<div align="center">
|
|
39
|
+
<a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
|
|
40
|
+
<br>
|
|
41
|
+
<p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<div align="center">
|
|
45
|
+
|
|
46
|
+
# nonebot-plugin-bili-dynamic
|
|
47
|
+
|
|
48
|
+
_✨ B站动态/直播推送插件,支持图片渲染 ✨_
|
|
49
|
+
|
|
50
|
+
<a href="./LICENSE">
|
|
51
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="license">
|
|
52
|
+
</a>
|
|
53
|
+
<a href="https://pypi.python.org/pypi/nonebot-plugin-bili-dynamic">
|
|
54
|
+
<img src="https://img.shields.io/pypi/v/nonebot-plugin-bili-dynamic.svg" alt="pypi">
|
|
55
|
+
</a>
|
|
56
|
+
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
## 📖 介绍
|
|
61
|
+
|
|
62
|
+
B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3 风格渲染图片。
|
|
63
|
+
|
|
64
|
+
- 支持动态检测推送(文字/图文/视频/专栏/直播)
|
|
65
|
+
- 支持直播开播提醒
|
|
66
|
+
- 使用 Skia 引擎渲染卡片图片
|
|
67
|
+
- 支持 HSB 渐变背景、半透明卡片、阴影效果
|
|
68
|
+
|
|
69
|
+
## 💿 安装
|
|
70
|
+
|
|
71
|
+
<details open>
|
|
72
|
+
<summary>使用 nb-cli 安装</summary>
|
|
73
|
+
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
|
|
74
|
+
|
|
75
|
+
nb plugin install nonebot-plugin-bili-dynamic
|
|
76
|
+
|
|
77
|
+
</details>
|
|
78
|
+
|
|
79
|
+
<details>
|
|
80
|
+
<summary>使用包管理器安装</summary>
|
|
81
|
+
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
|
|
82
|
+
|
|
83
|
+
<details>
|
|
84
|
+
<summary>pip</summary>
|
|
85
|
+
|
|
86
|
+
pip install nonebot-plugin-bili-dynamic
|
|
87
|
+
</details>
|
|
88
|
+
<details>
|
|
89
|
+
<summary>pdm</summary>
|
|
90
|
+
|
|
91
|
+
pdm add nonebot-plugin-bili-dynamic
|
|
92
|
+
</details>
|
|
93
|
+
<details>
|
|
94
|
+
<summary>poetry</summary>
|
|
95
|
+
|
|
96
|
+
poetry add nonebot-plugin-bili-dynamic
|
|
97
|
+
</details>
|
|
98
|
+
|
|
99
|
+
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入
|
|
100
|
+
|
|
101
|
+
plugins = ["nonebot_plugin_bili_dynamic"]
|
|
102
|
+
|
|
103
|
+
</details>
|
|
104
|
+
|
|
105
|
+
## ⚙️ 配置
|
|
106
|
+
|
|
107
|
+
在 nonebot2 项目的`.env`文件中添加下表中的必填配置
|
|
108
|
+
|
|
109
|
+
| 配置项 | 必填 | 默认值 | 说明 |
|
|
110
|
+
|:-----:|:----:|:----:|:----:|
|
|
111
|
+
| bili_account__sessdata | 否 | 空 | B站 SESSDATA Cookie |
|
|
112
|
+
| bili_account__bili_jct | 否 | 空 | B站 bili_jct Cookie |
|
|
113
|
+
| push__max_age_hours | 否 | 24 | 动态推送最大时效(小时),超过的仅记录不推送,0为不限制 |
|
|
114
|
+
|
|
115
|
+
> 注意:嵌套配置项需使用双下划线 `__` 连接,如 `push__max_age_hours=48`。
|
|
116
|
+
|
|
117
|
+
## 🎉 使用
|
|
118
|
+
### 指令表
|
|
119
|
+
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|
|
120
|
+
|:-----:|:----:|:----:|:----:|:----:|
|
|
121
|
+
| /bi add <UID> | 群员 | 否 | 群/私聊 | 订阅UP主 |
|
|
122
|
+
| /bi del <UID> | 群员 | 否 | 群/私聊 | 取消订阅 |
|
|
123
|
+
| /bi list | 群员 | 否 | 群/私聊 | 查看订阅列表 |
|
|
124
|
+
| /bi live <UID> | 群员 | 否 | 群/私聊 | 查询直播状态 |
|
|
125
|
+
| /bi new <UID> [n] | 群员 | 否 | 群/私聊 | 查看最新n条动态 |
|
|
126
|
+
| /bi login | 群员 | 否 | 群/私聊 | B站扫码登录 |
|
|
127
|
+
| /bi color <HEX> | 群员 | 否 | 群/私聊 | 设置主题色 |
|
|
128
|
+
|
|
129
|
+
## 📸 效果图
|
|
130
|
+
|
|
131
|
+
(TODO: 添加渲染效果图)
|
|
@@ -71,8 +71,11 @@ B站动态/直播推送插件,基于 Colter23 bilibili-dynamic-mirai-plugin v3
|
|
|
71
71
|
|
|
72
72
|
| 配置项 | 必填 | 默认值 | 说明 |
|
|
73
73
|
|:-----:|:----:|:----:|:----:|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
74
|
+
| bili_account__sessdata | 否 | 空 | B站 SESSDATA Cookie |
|
|
75
|
+
| bili_account__bili_jct | 否 | 空 | B站 bili_jct Cookie |
|
|
76
|
+
| push__max_age_hours | 否 | 24 | 动态推送最大时效(小时),超过的仅记录不推送,0为不限制 |
|
|
77
|
+
|
|
78
|
+
> 注意:嵌套配置项需使用双下划线 `__` 连接,如 `push__max_age_hours=48`。
|
|
76
79
|
|
|
77
80
|
## 🎉 使用
|
|
78
81
|
### 指令表
|