mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
e70d0df949
37
README.md
37
README.md
@ -245,8 +245,39 @@ __Docker 全量版(包含 真寻Bot PostgreSQL数据库 go-cqhttp webui等)_
|
|||||||
**点击上方的 GitHub 徽标查看教程**
|
**点击上方的 GitHub 徽标查看教程**
|
||||||
PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能无法正常启动全量版容器**
|
PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能无法正常启动全量版容器**
|
||||||
|
|
||||||
|
## [爱发电](https://afdian.net/@HibiKier)
|
||||||
|
<details>
|
||||||
|
<summary>爱发电 以及 感谢投喂 </summary>
|
||||||
|
<img width="365px" height="450px" src="https://user-images.githubusercontent.com/45528451/175059389-cfeb8174-fa07-4939-80ab-a039087a50f6.png">
|
||||||
|
|
||||||
|
### 感谢名单
|
||||||
|
(可以告诉我你的 __github__ 地址,我偷偷换掉0v|)
|
||||||
|
[爱发电用户_b9S4](https://afdian.net/u/3d8f30581a2911edba6d52540025c377)
|
||||||
|
[爱发电用户_c58s](https://afdian.net/u/a6ad8dda195e11ed9a4152540025c377)
|
||||||
|
[爱发电用户_eNr9](https://afdian.net/u/05fdb41c0c9a11ed814952540025c377)
|
||||||
|
[MangataAkihi](https://github.com/Sakuracio)
|
||||||
|
[炀](https://afdian.net/u/69b76e9ec77b11ec874f52540025c377)
|
||||||
|
[爱发电用户_Bc6j](https://afdian.net/u/8546be24f44111eca64052540025c377)
|
||||||
|
[大魔王](https://github.com/xipesoy)
|
||||||
|
[CopilotLaLaLa](https://github.com/CopilotLaLaLa)
|
||||||
|
[嘿小欧](https://afdian.net/u/daa4bec4f24911ec82e552540025c377)
|
||||||
|
[回忆的秋千](https://afdian.net/u/e315d9c6f14f11ecbeef52540025c377)
|
||||||
|
[十年くん](https://github.com/shinianj)
|
||||||
|
[哇](https://afdian.net/u/9b266244f23911eca19052540025c377)
|
||||||
|
[yajiwa](https://github.com/yajiwa)
|
||||||
|
[爆金币](https://afdian.net/u/0d78879ef23711ecb22452540025c377)
|
||||||
|
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
|
### 2022/8/14
|
||||||
|
|
||||||
|
* 修复epic未获取到时间时出错
|
||||||
|
* 修复订阅主播时动态获取的id是直播间id
|
||||||
|
|
||||||
### 2022/8/8
|
### 2022/8/8
|
||||||
|
|
||||||
* 修复赛马娘重载卡池失败的问题 [@pull/969](https://github.com/HibiKier/zhenxun_bot/pull/969)
|
* 修复赛马娘重载卡池失败的问题 [@pull/969](https://github.com/HibiKier/zhenxun_bot/pull/969)
|
||||||
@ -272,7 +303,7 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
* 替换了cos和bt的url [@pull/951](https://github.com/HibiKier/zhenxun_bot/pull/951)
|
* 替换了cos和bt的url [@pull/951](https://github.com/HibiKier/zhenxun_bot/pull/951)
|
||||||
* 发言记录统计添加日消息统计 [@pull/953](https://github.com/HibiKier/zhenxun_bot/pull/953)
|
* 发言记录统计添加日消息统计 [@pull/953](https://github.com/HibiKier/zhenxun_bot/pull/953)
|
||||||
|
|
||||||
### 2022/7/24
|
### 2022/7/24 \[v0.1.6.2]
|
||||||
|
|
||||||
* 订阅up动态提供直链
|
* 订阅up动态提供直链
|
||||||
|
|
||||||
@ -742,10 +773,6 @@ __..... 更多更新信息请查看文档__
|
|||||||
## Todo
|
## Todo
|
||||||
- [ ] web管理
|
- [ ] web管理
|
||||||
|
|
||||||
## 爱发电
|
|
||||||
|
|
||||||
<img width="365px" height="450px" src="https://user-images.githubusercontent.com/45528451/175059389-cfeb8174-fa07-4939-80ab-a039087a50f6.png">
|
|
||||||
|
|
||||||
## 感谢
|
## 感谢
|
||||||
[botuniverse / onebot](https://github.com/botuniverse/onebot) :超棒的机器人协议
|
[botuniverse / onebot](https://github.com/botuniverse/onebot) :超棒的机器人协议
|
||||||
[Mrs4s / go-cqhttp](https://github.com/Mrs4s/go-cqhttp) :cqhttp的golang实现,轻量、原生跨平台.
|
[Mrs4s / go-cqhttp](https://github.com/Mrs4s/go-cqhttp) :cqhttp的golang实现,轻量、原生跨平台.
|
||||||
|
|||||||
@ -234,7 +234,7 @@ async def _():
|
|||||||
rst = await get_sub_status(sub.sub_id, sub.sub_type)
|
rst = await get_sub_status(sub.sub_id, sub.sub_type)
|
||||||
await send_sub_msg(rst, sub, bot)
|
await send_sub_msg(rst, sub, bot)
|
||||||
if sub.sub_type == "live":
|
if sub.sub_type == "live":
|
||||||
rst = await get_sub_status(sub.sub_id, "up")
|
rst = await get_sub_status(sub.uid, "up")
|
||||||
await send_sub_msg(rst, sub, bot)
|
await send_sub_msg(rst, sub, bot)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"B站订阅推送发生错误 sub_id:{sub.sub_id if sub else 0} {type(e)}:{e}")
|
logger.error(f"B站订阅推送发生错误 sub_id:{sub.sub_id if sub else 0} {type(e)}:{e}")
|
||||||
|
|||||||
@ -96,12 +96,15 @@ async def get_epic_free(bot: Bot, type_event: str):
|
|||||||
if pair["key"] == "publisherName":
|
if pair["key"] == "publisherName":
|
||||||
game_pub = pair["value"]
|
game_pub = pair["value"]
|
||||||
game_desp = game["description"]
|
game_desp = game["description"]
|
||||||
end_date_iso = game["promotions"]["promotionalOffers"][0][
|
try:
|
||||||
"promotionalOffers"
|
end_date_iso = game["promotions"]["promotionalOffers"][0][
|
||||||
][0]["endDate"][:-1]
|
"promotionalOffers"
|
||||||
end_date = datetime.fromisoformat(end_date_iso).strftime(
|
][0]["endDate"][:-1]
|
||||||
"%b.%d %H:%M"
|
end_date = datetime.fromisoformat(end_date_iso).strftime(
|
||||||
)
|
"%b.%d %H:%M"
|
||||||
|
)
|
||||||
|
except IndexError:
|
||||||
|
end_date = '未知'
|
||||||
# API 返回不包含游戏商店 URL,此处自行拼接,可能出现少数游戏 404 请反馈
|
# API 返回不包含游戏商店 URL,此处自行拼接,可能出现少数游戏 404 请反馈
|
||||||
if game.get("productSlug"):
|
if game.get("productSlug"):
|
||||||
game_url = "https://store.epicgames.com/zh-CN/p/{}".format(
|
game_url = "https://store.epicgames.com/zh-CN/p/{}".format(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user