1124 Commits

Author SHA1 Message Date
UKM
ff3c0ffe65
🐛 修复bilibili推送的一些格式错误 (#263)
* 🎈 perf(platform/bilibili): 增加了相似度计算前文本的预处理

将动态和简介文本中较长的一段按照较短的一段进行截取(分了从前截和从后截的两种情况)

* 🐞 fix(bilibili): 修复视频简介多余空格的bug

* 🦄 refactor(bilibili): 更改文本相似度比较函数
2023-07-18 15:06:46 +08:00
github-actions[bot]
5922a7827f 📝 Update changelog 2023-07-18 03:55:24 +00:00
UKM
9838e25bad
🎈优化RSS推送的内容 (#259)
* 🧪 test(tests): 添加了RSS的单元测试

* 🎈 perf(rss and test): 优化了RSS部分源标题正文重复的问题

部分RSS源(RSSHub的Twitter)存在正文当标题用的情况,导致推送的时候呈现为两段重复的文字,现通过Jaccard相似系数来判断是否需要去重

* Update nonebot_bison/platform/rss.py

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>

* Update nonebot_bison/platform/rss.py

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>

* 🐞 fix(platform/rss): 修复了漏掉相似文本在后端位置的问题

* 🐞 fix(rss): 修正一些feed无法正确识别时间的bug

一些feed时间只有updated标签或者没有,原先的代码只能解析用published标签的时间

felinae98#275

* 🎈 perf(rss): 更改字符串相似度比较方法

从Jaccard相似系数比较相似度改为通过最长公共子序列来比较

* 🦄 refactor(rss): 重构实现字符串相似度比较的方法

使用标准库difflib代替原先手搓的LCS

* Update nonebot_bison/utils/__init__.py

Co-authored-by: felinae98 <731499577@qq.com>

* Update nonebot_bison/platform/rss.py

* Update nonebot_bison/platform/rss.py

---------

Co-authored-by: AzideCupric <57004769+AzideCupric@users.noreply.github.com>
Co-authored-by: felinae98 <731499577@qq.com>
2023-07-18 11:54:49 +08:00
github-actions[bot]
1db15ffc75 📝 Update changelog 2023-07-17 12:29:58 +00:00
AzideCupric
7c62d218c0 👌 添加下划线以表示函数私有
Co-authored-by: felinae98 <731499577@qq.com>
2023-07-17 20:29:12 +08:00
Azide
4f7a3ebfbe 🐛 修复bililive订阅没有直播间的用户报错的问题 2023-07-17 20:29:12 +08:00
Azide
147f858a31 🐛 修复B站订阅没有动态的用户时报错的问题(第二次) 2023-07-17 20:29:12 +08:00
github-actions[bot]
4a36c47b92 📝 Update changelog 2023-06-26 03:58:05 +00:00
felinae98
4bf08d2446 🚀 fix dockerfile 2023-06-26 11:57:32 +08:00
Azide
43a612da43 ⬆️ 支持nb2.0.0并更新metadata 2023-06-26 11:57:32 +08:00
github-actions[bot]
8a5c52c444 📝 Update changelog 2023-06-11 07:33:33 +00:00
felinae98
a1b4f2fb27 🚚 rename config_manager to sub_manager 2023-06-11 15:32:57 +08:00
felinae98
9f1730093c 🎨 use Arg to replace assert 2023-06-11 15:32:57 +08:00
felinae98
4846d32e2e ♻️ extract out permission 2023-06-11 15:32:57 +08:00
felinae98
3ccdcc844b ♻️ adjust card 2023-06-11 15:32:57 +08:00
felinae98
7ef225a87e ⬆️ upgrade saa 2023-06-11 15:32:57 +08:00
felinae98
681c611393 ♻️ remove ob11 message for dummy message 2023-06-11 15:32:57 +08:00
felinae98
9b679cb827 ♻️ use plaintext promot 2023-06-11 15:32:57 +08:00
felinae98
6743929ca2 🚚 reorganize config_manager 2023-06-11 15:32:57 +08:00
felinae98
8a20897fe9 ♻️ refactor config manager 2023-06-11 15:32:57 +08:00
github-actions[bot]
3bdbed9f45 📝 Update changelog 2023-06-10 04:56:26 +00:00
Cinte
7dacae379a 🐛 在Postgresql下,user_target字段使用jsonb代替json 2023-06-10 12:55:43 +08:00
dependabot[bot]
009bfb397e ⬆️ Bump vite from 4.0.4 to 4.0.5
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.0.5/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.0.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-06 10:35:22 +08:00
github-actions[bot]
90ffa0af9a 📝 Update changelog 2023-06-05 19:31:31 +00:00
felinae98
2ba9542b63 🚧 use saa-send 2023-06-06 03:30:50 +08:00
felinae98
5010ca1ac5 🚧 sunset get_bot 2023-06-06 03:30:50 +08:00
AzideCupric
39c045c63f subs-io适配引入saa后的新数据库结构 (#219的subs-io部分) (#224)
* 🚚 将nbesf_model统一放到目录中

*  添加v2版本的nbesf

*  使subs_import支持导入多个版本的nbesf文件

*  使用saa的AllSupportedPlatformTarget

* 🚧 use deserialize

---------

Co-authored-by: felinae98 <731499577@qq.com>
2023-06-06 03:30:50 +08:00
felinae98
da8e988ee9 ♻️ use saa 2023-06-06 03:30:50 +08:00
felinae98
4118329bb0 🚧 remove User type 2023-06-06 03:30:50 +08:00
felinae98
d535f5212d 🗃️ add user_target column 2023-06-06 03:30:50 +08:00
github-actions[bot]
e8d83c5255 🔖 Release 0.7.3 2023-06-04 15:59:15 +00:00
felinae98
3fc913ff32
🔖 release 0.7.3 2023-06-04 23:56:48 +08:00
dependabot[bot]
818d64fffd
⬆️ Bump requests from 2.28.2 to 2.31.0 (#262)
Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-29 20:55:47 +08:00
github-actions[bot]
78034ce227 📝 Update changelog 2023-05-22 16:06:29 +00:00
UKM
a8d632ffa3
🐞 更换获取B站用户名的api (#261)
* 🐞 fix(platform-bilibili): 更改获取b站用户名的api

原先的api又用不了,换了一个api

* 🧪 test(tests/bilibili): 添加了部分B站的单元测试

1.修正番剧链接识别正则表达式出错
2.添加了直播和番剧的解析目标的单元测试
2023-05-23 00:05:50 +08:00
github-actions[bot]
9e9805557d 📝 Update changelog 2023-05-20 07:57:56 +00:00
LambdaYH
3f98b6c214 🐛 修复ff14公告链接 2023-05-20 15:57:23 +08:00
github-actions[bot]
56d15d0ea8 📝 Update changelog 2023-05-19 15:43:32 +00:00
github-actions[bot]
ac41700ba1 🔖 Release 0.7.2 2023-05-19 05:01:01 +00:00
dependabot[bot]
4a1fc709a0 ⬆️ Bump starlette from 0.26.1 to 0.27.0
Bumps [starlette](https://github.com/encode/starlette) from 0.26.1 to 0.27.0.
- [Release notes](https://github.com/encode/starlette/releases)
- [Changelog](https://github.com/encode/starlette/blob/master/docs/release-notes.md)
- [Commits](https://github.com/encode/starlette/compare/0.26.1...0.27.0)

---
updated-dependencies:
- dependency-name: starlette
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 12:51:21 +08:00
felinae98
5a62ae777a
🔖 release 0.7.2 2023-05-19 12:50:54 +08:00
github-actions[bot]
947f94919f 📝 Update changelog 2023-05-19 04:48:31 +00:00
felinae98
db60666ca6
👷 调整ci 2023-05-19 12:47:17 +08:00
dependabot[bot]
e62317bc6c ⬆️ Bump pymdown-extensions from 9.10 to 10.0
Bumps [pymdown-extensions](https://github.com/facelessuser/pymdown-extensions) from 9.10 to 10.0.
- [Release notes](https://github.com/facelessuser/pymdown-extensions/releases)
- [Commits](https://github.com/facelessuser/pymdown-extensions/compare/9.10...10.0)

---
updated-dependencies:
- dependency-name: pymdown-extensions
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-17 00:19:01 +08:00
github-actions[bot]
4146ce321d 📝 Update changelog 2023-05-13 17:42:08 +00:00
AzideCupric
24b6d60d69
开播提醒推送的图片改为使用直播间封面 (#249)
*  为bilibili直播添加下播提醒,添加直播分区信息

🚸 开播提醒推送的图片改为使用直播间封面

* ♻️ 使用Enum

* 🐛 修复bilibili发送视频动态时不推送视频标题的问题

* 🎨 调整LiveAction的注释和jaccard函数代码位置

* 🚨 修改RawPost类型定义,优化bililive类型显示
2023-05-14 01:41:25 +08:00
github-actions[bot]
1b077792aa 📝 Update changelog 2023-05-10 16:42:31 +00:00
felinae98
bdb47b41d0 📝 fix indent 2023-05-11 00:41:30 +08:00
felinae98
45a3775151 📝 update doc 2023-05-11 00:41:30 +08:00
Azide
510defc263 📝 优化主页展示 2023-05-11 00:41:30 +08:00