Skip to content

Commit

Permalink
Merge pull request #47 from SK-415/dev
Browse files Browse the repository at this point in the history
close #42
  • Loading branch information
SK-415 authored Mar 3, 2021
2 parents e2b29fe + 8cc4143 commit 4300d87
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 3 deletions.
135 changes: 134 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "haruka-bot"
version = "1.2.1"
version = "1.2.2"
description = "Push dynamics and live informations from bilibili to QQ. Based on nonebot2."
authors = ["SK-415 <[email protected]>"]
license = "AGPL-3.0-or-later"
Expand All @@ -24,7 +24,7 @@ pyppeteer = "^0.2.5"
tinydb = "^4.3.0"
packaging = "^20.9"
nonebot-plugin-apscheduler = "^0.1.2"
pydantic = "^1.7.3"
pydantic = "1.7.3"
nonebot2 = "2.0.0a10"
rsa = "^4.7"
click = "^7.1.2"
Expand All @@ -33,6 +33,7 @@ python-dotenv = "^0.15.0"
[tool.poetry.dev-dependencies]
autopep8 = "^1.5.4"
nb-cli = "^0.3.2"
pyinstaller = "^4.2"

[[tool.poetry.source]]
name = "aliyun"
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/haruka_bot/live_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ async def live_sched():
logger.debug(f'爬取直播列表,目前开播{sum(status.values())}人,总共{len(status)}人')
br = BiliReq()
r = await br.get_live_list(uids)
if not r:
return
for uid, info in r.items():
new_status = 0 if info['live_status'] == 2 else info['live_status']
if uid not in status:
Expand Down

1 comment on commit 4300d87

@vercel
Copy link

@vercel vercel bot commented on 4300d87 Mar 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.