439 Commits

Author SHA1 Message Date
felinae98
64eb427c51
♻️ refactor send logic (#185) 2023-02-05 23:36:21 +08:00
felinae98
358d6a0a4b
🔖 release 0.7.0 2023-02-05 20:46:33 +08:00
AzideCupric
7fa31b6060
♻️ 使用更加简约的方法生成mcbbsnews的推送,修改测试用例 (#170)
* change(mcbbsnews):使用更加简约的方法生成mcbbsnews的推送,修改测试用例

test(mcbbsnews):添加测试函数小工具

change(mcbbsnews):优化代码

test(mcbbsnews):调整测试

test(mcbbsnews):完善细节部分

fix(mcbbsnews):修改traceback的import位置

test fix(mcbbsnews):删除错误传参

* fix(mcbbsnews): 更新过时的category名称

feat(platform): 添加新的异常(CategoryNotRecognize), 用以区别已知但不支持的category(CategoryNotSupport)和未知的新增category(CategoryNotRecognize)

chore: 为各处的CategoryNotRecognize和CategoryNotSupport添加异常描述

test(mcbbsnews): 更新测试用文件的过时category名称
2023-02-05 17:09:31 +08:00
uy/sun
04f58d6a06
适配 Nonebot 插件元数据 (#184) 2023-02-03 21:15:01 +08:00
uy/sun
840bfb1bbd
♻️ 清理代码和依赖,并调整目录结构 (#181)
* 删除 alembic 依赖,并提高 datastore 依赖至 0.5.6 及以上

* 调整迁移脚本目录位置,同时删除不需要的 alembic 文件

* 删除 old_sched
2023-02-01 17:51:39 +08:00
uy/sun
bec252c48c
多机器人支持 (#179)
* 维护一个群号和QQ号与机器人实例的表

* 随机获取一个对应的机器人

* 获取所有机器人所在群的并集

* 监听到相关事件的时候刷新整个缓存

* 在发送错误后自动刷新缓存

* 合并相同类型的函数

* 添加测试
2023-01-31 21:04:00 +08:00
uy/sun
8da8f66fcf
💥 适配最新的 DataStore 插件,并切换模型为 SQLModel (#178)
* 使用 SQLModel

* 处理数据库迁移

* 与之前的模型相匹配

* sqlmodel 和 sqlalchemy 的导入移入测试函数内

并且使用 init_db 且测试前加载插件

* 重命名 alembic_version 表之前先检查是否存在且 version_num 属于插件

* 降级应该是把名称重新命名回去而不是删掉

* 不再设置 arbitrary_types_allowed 为 True
2023-01-30 22:52:11 +08:00
felinae98
0ebbdd2c0d ♻️ refactor api code 2022-12-23 22:56:41 +08:00
felinae98
0b4af8fb92 🔖 release v0.6.3 2022-12-03 19:06:56 +08:00
MeetWq
0ff13eea98
fix require name (#159)
* fix require name
* require before import
2022-12-03 18:19:23 +08:00
felinae98
95a2e48019 🐛 fix empty weibo parse error 2022-11-28 17:44:54 +08:00
felinae98
bd679914eb add context to log http error 2022-11-24 14:12:11 +08:00
AzideCupric
f6e7e95d1e fix(bilibili-live): 修正bilibili-live与bilibili-bangumi中过时的api
fix(bilibili-live): 修改另一个过时api

test(bilibili-live):调整bilibili-live测试文件

test(bilibili-bangumi):调整测试用的api
2022-11-23 20:56:52 +08:00
felinae98
e249a8d685 🐛 download weibo pics in parse 2022-11-22 22:11:30 +08:00
AzideCupric
e14fd5bfd7
更换哔哩哔哩直播使用的api,添加直播间标题修改时推送直播间的功能 (#128)
* feat(bililive):调整bililive所使用的api与推送消息内容

* feat(bililive):调整功能的实现细节

* test(bililive): 初步完善相关测试

* docs(bililive): 补充文档相关

* change(bililive): 将使用修改配置项以调整订阅的方式调整为使用category

* test(bililive): 调整测试,扩大测试范围

* change(bililive):调整Bilibili-live内部的代码实现

* test(bililive):修正测试

* delete(bililive):删除用来测试功能性的临时文件

* change(bililive): 调整代码
2022-10-19 23:49:02 +08:00
felinae98
57c1e504ce
fix platform store init error 2022-10-17 19:59:07 +08:00
felinae98
74b5074f04
inject http client to scheduler 2022-10-16 20:48:14 +08:00
felinae98
0c8a967654
update scheduler api 2022-10-15 00:41:55 +08:00
felinae98
b34f93b313
use deprecation marker for legacy db 2022-10-10 22:29:11 +08:00
felinae98
f6e392e8db
add dedup for data migration 2022-10-09 21:25:11 +08:00
felinae98
0d3198c8a1
fix error 2022-10-09 19:45:56 +08:00
pre-commit-ci[bot]
1543ba21d2
auto fix by pre-commit hooks 2022-10-09 19:45:56 +08:00
felinae98
ebcf1cc300
fix: handle subscibe dup exception 2022-10-09 19:45:55 +08:00
felinae98
5abf8fb2a0
Merge remote-tracking branch 'origin/main' into next 2022-10-07 17:25:18 +08:00
felinae98
469dc8877b
update frontend 2022-10-07 01:09:19 +08:00
felinae98
014ec92ff9
update 2022-10-07 01:07:16 +08:00
felinae98
ea928bf3fc
update 2022-10-07 01:07:16 +08:00
felinae98
b8af6d0024
update api 2022-10-07 01:07:16 +08:00
felinae98
ee01773e64
update pre-commit 2022-10-07 01:07:15 +08:00
felinae98
1d7d9b8fde
use new frontend 2022-10-07 01:07:13 +08:00
felinae98
88e3d4de12
fixup! feat: add temp client for bilibili
fix bug
2022-10-04 15:45:00 +08:00
felinae98
98a5ae6b4c
fixup! feat: add temp client for bilibili
fix bug
2022-10-04 15:44:59 +08:00
felinae98
6851bb5765
feat: add temp client for bilibili 2022-10-04 15:44:56 +08:00
felinae98
19dcf4dea0
fix: fix raise wrong exception in bilibili-live 2022-10-04 15:38:59 +08:00
felinae98
22f6796b33
Merge branch 'main' into next 2022-09-24 09:57:59 +08:00
Azide
8e315d53d3 fix test:修改了订阅过程中bot的回复内容并调整单元测试 2022-09-12 02:33:49 +08:00
Azide
34986c1d4e fix:逻辑优化 2022-09-12 00:27:33 +08:00
Azide
4177fd149a feat (issue#67):添加屏蔽特定tag的功能 2022-09-02 02:48:11 +08:00
Azide
8a4a7ad26c 完善tag的处理逻辑 2022-08-21 22:10:07 +08:00
Azide
f486d0b983 初步完成屏蔽特定tag功能 2022-08-20 22:33:57 +08:00
felinae98
f6a816a716
update bilibili-bangumi parser 2022-08-05 23:15:53 +08:00
felinae98
5b74850715
finish bilibili-bangumi 2022-08-04 23:06:38 +08:00
felinae98
a9bdcbd448
add bilibili-bangumi 2022-08-04 23:05:23 +08:00
felinae98
38c7aca90d
Merge branch 'main' into next 2022-08-04 23:04:53 +08:00
felinae98
517c651c97
provides method to avoid update status when api error 2022-07-31 23:13:59 +08:00
felinae98
6e801a1624
Merge branch 'main' into next 2022-07-23 16:03:48 +08:00
Azide
8d12334305 fix:调整代码与注释 2022-07-12 22:59:47 +08:00
Azide
686b73ae25 docs:完善文档 2022-07-10 17:43:44 +08:00
Azide
28c73f2fba Merge remote-tracking branch 'upstream/main' into feat/custom-post 2022-07-10 12:52:00 +08:00
Azide
f6ff760c56 fix:优化代码逻辑 2022-07-10 12:51:54 +08:00