Giter VIP home page Giter VIP logo

djkcyl / bbot-graia Goto Github PK

View Code? Open in Web Editor NEW
127.0 4.0 14.0 4.71 MB

一个使用 gRPC 接口用于 QQ 群内高效推送 BiliBili 动态和直播的 Graia 机器人

License: GNU Affero General Public License v3.0

Dockerfile 0.21% Python 91.60% JavaScript 2.96% HTML 2.97% PowerShell 1.11% Shell 1.14%
ariadne bilibili bilibili-api graia graia-ariadne graia-framework graiaproject grpc grpc-python playwright

bbot-graia's Introduction

Metrics

bbot-graia's People

Contributors

djkcyl avatar gblodb avatar kabuda-czh avatar redlnn avatar well2333 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bbot-graia's Issues

[Bug]:更新了动态,截图失败

需要由您确认的事项

  • 我已阅读了项目的 Wiki,并且成功安装了所需的所有依赖。
  • 我已经使用 GitHub 的 Issue 搜索功能,并且确认我的问题并未被提出或解决。
  • 我已经确认我的问题不是上游错误。
  • 是否为 Release 的一键启动包。

系统

Linux

IDC

腾讯云

Python 版本

python:3.10.11-slim

BBot 版本

V1.3.2 & 1.2.4b3

Mirai 版本号

v2.14

Mirai API HTTP 版本号

v2.9.1

问题简述

我之前使用的是1.2.4b3版本,大概从5.23开始出现截图失败的情况并且无限重试失败,之前功能完全正常,在出错前没有任何配置以及其他插件修改。今天将版本升级到V1.3.2问题依旧存在。

PS:我是使用docker部署的,在升级最新版本时使用python:3.9.15-slim词云部分的代码会报错,改成python:3.10.11-slim后可以正常启动程序。

Mirai 配置

adapters:
  - http 
  - ws
debug: true
enableVerify: true
verifyKey: xxxxxx
singleMode: false
cacheSize: 4096
adapterSettings:
  http:
    host: localhost # 需要修改并匹配的对象
    port: 9090     # 需要修改并匹配的对象
    cors: [*]
  ws:
    host: localhost
    port: 9090
    reservedSyncId: -1

BBot 配置

# 警告: 在 bot 第一次成功运行后配置文件将会被规范化, 此文件中的注释均会被清除,
# 并且配置项顺序可能会出现变动, 若需要查看配置项的详细信息可参考配置文档
# https://github.com/djkcyl/BBot-Graia/wiki/fill-config

Mirai:
  mirai_host: http://localhost:9090  # **需要** 填入 mirai-api-http 的监听地址
  verify_key: xxxxxx              # **需要** 填入 mirai 的密钥
  account: 123                # **需要** 填入 bot 的 qq 号
Debug:
  enable: false      # 是否开启 debug
  groups:            # 若开启 debug 则 **需要** 填入群号, list 里填 int
    - 123456789
Bilibili:
  mobile_style: true # 是否采用手机的 Web 样式进行截图
  use_login: false   # 是否使用登录的 BiliBili 账号进行动态监听(不要开)
  username:          # BiliBili 账号,若填写则会在启动后自动登录,并且用于部分功能,如 AI 字幕
  password:          # BiliBili 密码
  concurrency: 5     # 未登录时发送 gRPC 请求的并发数量(1 ~ 50)
  dynamic_font: "HarmonyOS_Sans_SC_Medium.ttf" # 自定义动态字体
  dynamic_font_source: "local"            # 自定义动态字体来源, 可选值: "local", "remote", "system", 为 "local" 时请将字体文件放在 data/font 目录下
  openai_summarization: false             # 是否使用 OpenAI 进行视频和专栏的 AI 总结
  openai_api_token: "sk-xxxxxxxxxxxxxx"   # OpenAI API Token
  openai_model: "gpt-3.5-turbo-0301"      # OpenAI 模型
  openai_proxy: "http://localhost:7890"   # 请求 OpenAI 所用的代理
  use_wordcloud: false                     # 是否使用词云
  use_bcut_asr: false                      # 是否使用 BCut 进行 AI 语音识别
  asr_length_threshold: 60                # 调用语音识别的最小长度阈值(秒)
Event:
  mute: true         # 是否向管理员发送被禁言的事件提醒。
  permchange: true   # 是否向管理员发送权限变更的事件提醒。
  push: true         # 是否向管理员发送推送的事件提醒。
  subscribe: true    # 是否向管理员发送订阅的事件提醒。
Webui:
  webui_host: "0.0.0.0"
  webui_port: 6080
  webui_enable: true
log_level: INFO      # 控制台输出的日志等级
name: BBot           # bot 的自称
access_control: true # 是否开启白名单模式
master: 123 # **需要** 填入 bot 主人的 qq 号
admins:              # 可以填入 bot 管理员的 qq 号, list 里填 int
  - 123
max_subsubscribe: 4  # 非 vip 群聊最大可订阅数量
update_check: false   # 是否检查更新

# 警告: 在 bot 第一次成功运行后配置文件将会被规范化, 此文件中的注释均会被清除, 
# 并且配置项顺序可能会出现变动, 若需要查看配置项的详细信息可参考配置文档
# https://github.com/djkcyl/BBot-Graia/wiki/fill-config

在此处填写 Mirai 日志

none

在此处填写 BBot 日志

2023-05-29 17:56:58.729 | INFO     | aunly_bbot.utils.browser_shot:screenshot:56 - 正在截图动态:801202440850374656
2023-05-29 17:57:04.245 | ERROR    | aunly_bbot.utils.browser_shot:screenshot:73 - [BiliBili推送] 801202440850374656 动态截图失败,正在重试:
Traceback (most recent call last):

  File "/bbot/main.py", line 35, in <module>
    main()
    └ <Group main>

  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ ()
           │    └ <function BaseCommand.main at 0x7fc090fcf0a0>
           └ <Group main>
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         │    │      └ <click.core.Context object at 0x7fc09155cc10>
         │    └ <function MultiCommand.invoke at 0x7fc090fd40d0>
         └ <Group main>
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
           │               │       │       │      └ <click.core.Context object at 0x7fc0912b31f0>
           │               │       │       └ <function Command.invoke at 0x7fc090fcfb50>
           │               │       └ <Command run>
           │               └ <click.core.Context object at 0x7fc0912b31f0>
           └ <function MultiCommand.invoke.<locals>._process_result at 0x7fc09162fd90>
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           │   │      │    │           │   └ {'test': False, 'skip_verfiy': False, 'ignore_sub': False}
           │   │      │    │           └ <click.core.Context object at 0x7fc0912b31f0>
           │   │      │    └ <function run_bot at 0x7fc090062c20>
           │   │      └ <Command run>
           │   └ <function Context.invoke at 0x7fc090fce8c0>
           └ <click.core.Context object at 0x7fc0912b31f0>
  File "/usr/local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
                       │       └ {'test': False, 'skip_verfiy': False, 'ignore_sub': False}
                       └ ()

  File "/bbot/aunly_bbot/cli/__init__.py", line 33, in run_bot
    run_bot()
    └ <function run_bot at 0x7fc08f17cf70>

  File "/bbot/aunly_bbot/cli/run.py", line 17, in run_bot
    app.launch_blocking()
    │   └ <classmethod(<function Ariadne.launch_blocking at 0x7fc08ec8af80>)>
    └ <graia.ariadne.app.Ariadne object at 0x7fc08f176800>

  File "/usr/local/lib/python3.10/site-packages/graia/ariadne/app.py", line 312, in launch_blocking
    cls.launch_manager.launch_blocking(loop=cls.service.loop, stop_signal=stop_signals)
    │   │              │                    │   │       │                 └ (<Signals.SIGINT: 2>,)
    │   │              │                    │   │       └ <property object at 0x7fc08ec998f0>
    │   │              │                    │   └ <graia.ariadne.service.ElizabethService object at 0x7fc08f177610>
    │   │              │                    └ <class 'graia.ariadne.app.Ariadne'>
    │   │              └ <function Launart.launch_blocking at 0x7fc08f02a320>
    │   └ <launart.manager.Launart object at 0x7fc08c550df0>
    └ <class 'graia.ariadne.app.Ariadne'>
  File "/usr/local/lib/python3.10/site-packages/launart/manager.py", line 494, in launch_blocking
    loop.run_until_complete(launch_task)
    │    │                  └ <Task pending name='amnesia-launch' coro=<Launart.launch() running at /usr/local/lib/python3.10/site-packages/launart/manager...
    │    └ <function BaseEventLoop.run_until_complete at 0x7fc0907052d0>
    └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
    │    └ <function BaseEventLoop.run_forever at 0x7fc090705240>
    └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
    │    └ <function BaseEventLoop._run_once at 0x7fc090706d40>
    └ <_UnixSelectorEventLoop running=True closed=False debug=False>
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
    │      └ <function Handle._run at 0x7fc0906a2710>
    └ <Handle Task.task_wakeup(<Future finished result=None>)>
  File "/usr/local/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
    │    │            │    │           │    └ <member '_args' of 'Handle' objects>
    │    │            │    │           └ <Handle Task.task_wakeup(<Future finished result=None>)>
    │    │            │    └ <member '_callback' of 'Handle' objects>
    │    │            └ <Handle Task.task_wakeup(<Future finished result=None>)>
    │    └ <member '_context' of 'Handle' objects>
    └ <Handle Task.task_wakeup(<Future finished result=None>)>

  File "/bbot/aunly_bbot/function/pusher/dynamic.py", line 368, in check_uid
    await push(app, dyn)
          │    │    └ card_type: draw
          │    │      modules {
          │    │        module_type: module_author
          │    │        module_author {
          │    │          mid: 24642415
          │    │          ptime_label_text: "2分钟前"
          │    │          a...
          │    └ <graia.ariadne.app.Ariadne object at 0x7fc08f176800>
          └ <function push at 0x7fc089751480>

  File "/bbot/aunly_bbot/function/pusher/dynamic.py", line 183, in push
    shot_image = await get_dynamic_screenshot(dyn)
                       │                      └ card_type: draw
                       │                        modules {
                       │                          module_type: module_author
                       │                          module_author {
                       │                            mid: 24642415
                       │                            ptime_label_text: "2分钟前"
                       │                            a...
                       └ <function get_dynamic_screenshot at 0x7fc0896e15a0>

  File "/bbot/aunly_bbot/utils/dynamic_shot.py", line 12, in get_dynamic_screenshot
    return await browser_dynamic(dyn.extend.dyn_id_str)
                 │               └ card_type: draw
                 │                 modules {
                 │                   module_type: module_author
                 │                   module_author {
                 │                     mid: 24642415
                 │                     ptime_label_text: "2分钟前"
                 │                     a...
                 └ <function browser_dynamic at 0x7fc0889cde10>

  File "/bbot/aunly_bbot/utils/browser_shot.py", line 52, in browser_dynamic
    return await screenshot(dynid, browser_context)
                 │          │      └ <BrowserContext browser=None>
                 │          └ '801202440850374656'
                 └ <function screenshot at 0x7fc0889cd990>

> File "/bbot/aunly_bbot/utils/browser_shot.py", line 66, in screenshot
    page, clip = await get_mobile_screenshot(page, dynid)
    │                  │                     │     └ '801202440850374656'
    │                  │                     └ <Page url='https://m.bilibili.com/dynamic/801202440850374656'>
    │                  └ <function get_mobile_screenshot at 0x7fc0889cdd80>
    └ <Page url='https://m.bilibili.com/dynamic/801202440850374656'>

  File "/bbot/aunly_bbot/utils/browser_shot.py", line 147, in get_mobile_screenshot
    assert card
           └ None

AssertionError: assert card

其他信息

No response

查看开播状态

大佬能给bbot增加一个可查看当前关注主播的开播状态功能吗?

BBot 无法正常启动

需要由您确认的事项

  • 我已阅读了项目的 Wiki,并且成功安装了所需的所有依赖。
  • 我已经使用 GitHub 的 Issue 搜索功能,并且确认我的问题并未被提出或解决。
  • 我已经确认我的问题不是上游错误。
  • 是否为 Release 的一键启动包。

系统

Linux

IDC

其他

Python 版本

Release

BBot 版本

v1.2.3-post3

Mirai 版本号

2.14.0

Mirai API HTTP 版本号

2.8.0

问题简述

IDC网络环境:香港 1c2g

  1. 在 tmux 内启动 miraiconsole ,成功启动,并成功登录机器人帐号。
  2. 在另外一个 tmux 内启动 bbot-1.2.3-post3-nuitka ,成功启动,并通过方便的config指令配置完毕。
  3. 使用 run 指令运行,出现没有响应的现象,CPU占满了,运存占用182mb,几乎没有网络传输,硬盘IO极低,日志写在下面了。

Mirai 配置

adapters:
  - http
  - ws
debug: false
enableVerify: true
verifyKey: 《key已经打码,与下面的相同》 # 你可以自己设定,这里作为示范
singleMode: false
cacheSize: 4096
adapterSettings:
  http:
    host: localhost
    port: 12586
    cors: [*]
  ws:
    host: localhost
    port: 12586
    reservedSyncId: -1

BBot 配置

Mirai:
  account: 《打码》
  verify_key: 《key已经打码,与上面的相同》
  mirai_host: http://localhost:12586
Debug:
  groups:
  - 123456789
  enable: false
Bilibili:
  username: null
  password: null
  use_login: false
  mobile_style: true
  concurrency: 7
  dynamic_font: HarmonyOS_Sans_SC_Medium.woff2
  dynamic_font_source: local
Event:
  mute: true
  permchange: true
  push: true
  subscribe: true
Webui:
  webui_host: 0.0.0.0
  webui_port: 6080
  webui_enable: true
log_level: DEBUG
name: BBot
master: 《打码》
admins:
- 《打码,与master相同》
max_subsubscribe: 30
access_control: false
update_check: true

在此处填写 Mirai 日志

root@ser626753681950:~/mirai/mcl-2.1.2# ./mcl                                                                                                                           
  05:26:16 [INFO] iTX Technologies Mirai Console Loader version 2.1.2-61c8bd8                                                                                           
  05:26:16 [INFO] Runtime: OpenJDK 64-Bit Server VM 17.0.6 (arch: 64)                                                                                                   
  05:26:16 [INFO] https://github.com/iTXTech/mirai-console-loader                                                                                                       
  05:26:16 [INFO] This program is licensed under GNU AGPL v3
  05:26:19 [INFO] Mirai Console Loader Announcement:
Mirai Console Loader 公告栏

如果在图片上传的时候遇到问题请与我们联系 (需要提供图片文件源本)
`- 如 Unsupported image type for ExternalResource *
`  considering use gif/png/bmp/jpg format. 
`- Tracker: https://github.com/mamoe/mirai/issues/new/choose

常用资源整合
`- https://mirai.mamoe.net/topic/653
  
MCL 已推出 2.1.0,更好的支持 Mirai 2.11 的插件系统,建议更新。

  05:26:19 [INFO] Verifying "net.mamoe:mirai-console" v2.14.0
  05:26:21 [INFO] Verifying "net.mamoe:mirai-console-terminal" v2.14.0
  05:26:21 [INFO] Verifying "net.mamoe:mirai-core-all" v2.14.0
  05:26:22 [INFO] Verifying "org.itxtech:mcl-addon" v2.1.1
  05:26:22 [INFO] Verifying "net.mamoe:mirai-api-http" v2.8.0
2023-03-02 05:26:26 I/main: Starting mirai-console...
2023-03-02 05:26:26 I/main: 

==================================[ Mirai consosle 2.14.0 ]=================================== 
                                                                
 __       __ __                   __  ______                                      __                                                                                    
|  \     /  \  \                 |  \/      \                                    |  \
| ▓▓\   /  ▓▓\▓▓ ______   ______  \▓▓  ▓▓▓▓▓▓\ ______  _______   _______  ______ | ▓▓ ______
| ▓▓▓\ /  ▓▓▓  \/      \ |      \|  \ ▓▓   \▓▓/      \|       \ /       \/      \| ▓▓/      \
| ▓▓▓▓\  ▓▓▓▓ ▓▓  ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓     |  ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\  ▓▓▓▓▓▓▓  ▓▓▓▓▓▓\ ▓▓  ▓▓▓▓▓▓\
| ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓   \▓▓/      ▓▓ ▓▓ ▓▓   __| ▓▓  | ▓▓ ▓▓  | ▓▓\▓▓    \| ▓▓  | ▓▓ ▓▓ ▓▓    ▓▓
| ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓     |  ▓▓▓▓▓▓▓ ▓▓ ▓▓__/  \ ▓▓__/ ▓▓ ▓▓  | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓
| ▓▓  \▓ | ▓▓ ▓▓ ▓▓      \▓▓    ▓▓ ▓▓\▓▓    ▓▓\▓▓    ▓▓ ▓▓  | ▓▓       ▓▓\▓▓    ▓▓ ▓▓\▓▓     \
 \▓▓      \▓▓\▓▓\▓▓       \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓  \▓▓▓▓▓▓ \▓▓   \▓▓\▓▓▓▓▓▓▓  \▓▓▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓


2023-03-02 05:26:26 I/main: Backend: version 2.14.0, built on 2023-02-06 06:25:21.
2023-03-02 05:26:26 I/main: Frontend Terminal: version 2.14.0, provided by Mamoe Technologies
2023-03-02 05:26:26 I/main: Welcome to visit https://mirai.mamoe.net/
2023-03-02 05:26:31 I/plugin: Successfully loaded plugin mirai-api-http v2.8.0
2023-03-02 05:26:31 I/plugin: Successfully loaded plugin MCL Addon v2.1.1
2023-03-02 05:26:32 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop
2023-03-02 05:26:32 I/Mirai HTTP API: ********************************************************
2023-03-02 05:26:33 I/MahKtorAdapter[http,ws]: Autoreload is disabled because the development mode is off.
2023-03-02 05:26:33 I/MahKtorAdapter[http,ws]: Application started in 0.733 seconds. 
2023-03-02 05:26:33 I/MahKtorAdapter[http,ws]: Responding at http://localhost:12586
2023-03-02 05:26:33 I/http adapter: >>> [http adapter] is listening at http://localhost:12586
2023-03-02 05:26:33 I/ws adapter: >>> [ws adapter] is listening at ws://localhost:12586
2023-03-02 05:26:33 I/Mirai HTTP API: Http api server is running with verifyKey: GraiaxVerify114514Key
2023-03-02 05:26:33 I/Mirai HTTP API: adaptors: [http,ws]
2023-03-02 05:26:33 I/Mirai HTTP API: ********************************************************
2023-03-02 05:26:34 I/MCL Addon: iTXTech MCL Version: 2.1.2-61c8bd8
2023-03-02 05:26:34 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用
2023-03-02 05:26:34 I/main: 2 plugin(s) enabled.
2023-03-02 05:26:34 I/main: Auto-login 656489701, protocol: IPAD, heartbeatStrategy: STAT_HB
2023-03-02 05:26:35 I/Bot.656489701: Loaded account secrets from local cache.
2023-03-02 05:26:36 I/Bot.656489701: Saved account secrets to local cache for fast login.
2023-03-02 05:26:36 I/Bot.656489701: Login successful.
2023-03-02 05:26:37 V/Bot.656489701: Event: BotOnlineEvent(bot=Bot(《打码》))
2023-03-02 05:26:37 I/Bot.656489701: Bot login successful.
2023-03-02 05:26:37 I/main: mirai-console started successfully.

在此处填写 BBot 日志

root@ser626753681950:~/bbot/Apackage# ./bbot-1.2.3-post3-nuitka run
2023-03-02 05:41:15.789 | INFO     | aunly_bbot.core.log:<module aunly_bbot.core.log>:33 - 检测到当前运行在各类容器中,或运行为打包(nuitka、pyinstaller)版本,已禁用 r
ichuru
2023-03-02 05:41:15.843 | SUCCESS  | aunly_bbot.core.log:<module aunly_bbot.core.log>:75 - 成功重载 logger,当前日志等级为 DEBUG
2023-03-02 05:41:16.024 | INFO     | aunly_bbot.website.api.router.auth:<module aunly_bbot.website.api.router.auth>:27 - 已生成 API 密钥: 19113230********************97
ece0b6
2023-03-02 05:41:16.253 | INFO     | aunly_bbot.bot:<module aunly_bbot.bot>:30 - BBot is starting...
2023-03-02 05:41:16.254 | INFO     | aunly_bbot.core.announcement:base_telemetry:92 - 
                     //
         \\         //
          \\       //
    ##DDDDDDDDDDDDDDDDDDDDDD##
    ## DDDDDDDDDDDDDDDDDDDD ##   ________  ________  ________  _________
    ## hh                hh ##  |\   __  \|\   __  \|\   __  \|\___   ___\
    ## hh    //    \\    hh ##  \ \  \|\ /\ \  \|\ /\ \  \|\  \|___ \  \_|
    ## hh   //      \\   hh ##   \ \   __  \ \   __  \ \  \\\  \   \ \  \
    ## hh                hh ##    \ \  \|\  \ \  \|\  \ \  \\\  \   \ \  \
    ## hh      wwww      hh ##     \ \_______\ \_______\ \_______\   \ \__\
    ## hh                hh ##      \|_______|\|_______|\|_______|    \|__|
    ## MMMMMMMMMMMMMMMMMMMM ##
    ##MMMMMMMMMMMMMMMMMMMMMM##  Release 1.2.3-post3. Powered by graia-ariadne 0.10.3.
        \/            \/

2023-03-02 05:41:16.258 | INFO     | aunly_bbot.bot:<module aunly_bbot.bot>:34 - 正在下载字体...
2023-03-02 05:41:16.259 | DEBUG    | aunly_bbot.utils.fonts_provider:get_font:27 - font: https://cdn.jsdelivr.net/gh/irozhi/HarmonyOS-Sans/HarmonyOS_Sans_SC/HarmonyOS_S
ans_SC_Medium.woff2
2023-03-02 05:41:16.259 | DEBUG    | aunly_bbot.utils.fonts_provider:get_font:31 - Font HarmonyOS_Sans_SC_Medium.woff2 found in local
2023-03-02 05:41:16.260 | SUCCESS  | aunly_bbot.bot:<module aunly_bbot.bot>:36 - 字体下载完成!
2023-03-02 05:41:17.171 | SUCCESS  | aunly_bbot.bot:<module aunly_bbot.bot>:40 - Mirai HTTP API 验证成功!
2023-03-02 05:41:17.176 | DEBUG    | graia.saya:require:109 - require aunly_bbot.function
2023-03-02 05:41:17.283 | SUCCESS  | aunly_bbot.function:<module aunly_bbot.function>:46 - [function] 加载完成
2023-03-02 05:41:17.286 | INFO     | graia.saya:require:134 - module loading finished: aunly_bbot.function
2023-03-02 05:41:17.288 | INFO     | launart.manager:launch_blocking:479 - Starting launart main task...
2023-03-02 05:41:17.289 | INFO     | launart.manager:launch:331 - Launching 10 components as async task...
2023-03-02 05:41:17.299 | INFO     | graia.ariadne.service:base_telemetry:144 - 
    _         _           _
   / \   _ __(_) __ _  __| |_ __   ___
  / _ \ | '__| |/ _` |/ _` | '_ \ / _ \
 / ___ \| |  | | (_| | (_| | | | |  __/
/_/   \_\_|  |_|\__,_|\__,_|_| |_|\___|

2023-03-02 05:41:17.302 | INFO     | launart.manager:_launchable_task_done_callback:68 - [http.server/starlette] completed.
2023-03-02 05:41:17.850 | SUCCESS  | graiax.playwright.utils:log:5 - Playwright for firefox is ready.


然后就没有响应了,输入ctrl + c可退出

其他信息

用docker试过,也是没有响应:

2023-03-02 04:22:07.645 | SUCCESS  | core.log:<module>:74 - 成功重载 logger,当前日志等级为 INFO
2023-03-02 04:22:07.826 | WARNING  | core.data:<module>:104 - 数据库版本记录不存在,正在创建,当前版本:3
2023-03-02 04:22:08.204 | INFO     | bot:<module>:27 - BBot is starting...
2023-03-02 04:22:08.267 | INFO     | core.announcement:base_telemetry:75 - 
                     //
         \\         //
          \\       //
    ##DDDDDDDDDDDDDDDDDDDDDD##
    ## DDDDDDDDDDDDDDDDDDDD ##   ________  ________  ________  _________
    ## hh                hh ##  |\   __  \|\   __  \|\   __  \|\___   ___\
    ## hh    //    \\    hh ##  \ \  \|\ /\ \  \|\ /\ \  \|\  \|___ \  \_|
    ## hh   //      \\   hh ##   \ \   __  \ \   __  \ \  \\\  \   \ \  \
    ## hh                hh ##    \ \  \|\  \ \  \|\  \ \  \\\  \   \ \  \
    ## hh      wwww      hh ##     \ \_______\ \_______\ \_______\   \ \__\
    ## hh                hh ##      \|_______|\|_______|\|_______|    \|__|
    ## MMMMMMMMMMMMMMMMMMMM ##
    ##MMMMMMMMMMMMMMMMMMMMMM##  Release 1.2.0. Powered by graia-ariadne 0.10.3.
        \/            \/

Pillow: 9.4.0
PyYAML: 6.0
bilireq: 0.2.3.post0
fastapi: 0.88.0
graia-ariadne: 0.10.3
graiax-playwright: 0.2.1
passlib: 1.7.4
peewee: 3.15.4
psutil: 5.9.4
python-jose: 3.3.0
python-multipart: 0.0.5
qrcode: 7.3.1
sentry-sdk: 1.12.1
uvicorn: 0.19.0
websockets: 10.4
2023-03-02 04:22:08.432 | SUCCESS  | function:<module>:45 - [function] 加载完成
2023-03-02 04:22:08.433 | INFO     | graia.saya:require:134 - module loading finished: function
2023-03-02 04:22:08.435 | INFO     | launart.manager:launch_blocking:480 - Starting launart main task...
2023-03-02 04:22:08.436 | INFO     | launart.manager:launch:333 - Launching 10 components as async task...
2023-03-02 04:22:08.619 | INFO     | graia.ariadne.service:base_telemetry:144 - 
    _         _           _
   / \   _ __(_) __ _  __| |_ __   ___
  / _ \ | '__| |/ _` |/ _` | '_ \ / _ \
 / ___ \| |  | | (_| | (_| | | | |  __/
/_/   \_\_|  |_|\__,_|\__,_|_| |_|\___|

graiax-playwright: 0.2.1
graia-amnesia: 0.7.1
graia-ariadne: 0.10.3
graia-broadcast: 0.19.1
graia-saya: 0.0.17
graia-scheduler: 0.1.4
launart: 0.6.2
statv: 0.3.2
2023-03-02 04:22:08.628 | INFO     | launart.manager:_launchable_task_done_callback:68 - [http.server/starlette] completed.
2023-03-02 04:22:09.146 | SUCCESS  | graiax.playwright.utils:log:5 - Playwright for chromium is ready.
没有响应,然后我按了ctrl+c
2023-03-02 04:47:49.839 | WARNING  | launart.manager:_on_sys_signal:520 - Ctrl-C triggered by user.

[Bug]:BBot控制台卡死,无法正常退出

需要由您确认的事项

  • 我已阅读了项目的 Wiki,并且成功安装了所需的所有依赖。
  • 我已经使用 GitHub 的 Issue 搜索功能,并且确认我的问题并未被提出或解决。
  • 我已经确认我的问题不是上游错误。
  • 是否为 Release 的一键启动包。

系统

Linux

IDC

阿里云

Python 版本

Release

BBot 版本

v1.0.0

Mirai 版本号

v2.12.1

Mirai API HTTP 版本号

v2.5.2

问题简述

BBot在部署完成后可以正常启动,但会在初始化完毕后卡死,无法使用ctrl+c组合键中断,只能直接kill掉才可中止进程

Mirai 配置

adapters:
  - http
  - ws
debug: false
enableVerify: true
verifyKey: <*-*手动马赛克*-*> # 需要匹配的对象
singleMode: false
cacheSize: 4096
adapterSettings:
  http:
    host: 0.0.0.0 # 需要匹配的对象
    port: 34986     # 需要匹配的对象
    cors: [*]
  ws:
    host: 0.0.0.0 # 需要匹配的对象
    port: 34986     # 需要匹配的对象
    reservedSyncId: -1

BBot 配置

Mirai:
  account: <*-*手动马赛克*-*>
  verify_key: <*-*手动马赛克*-*>
  mirai_host: http://localhost:34986
Debug:
  groups:
  - <*-*手动马赛克*-*>
  enable: false
Bilibili:
  username: <*-*手动马赛克*-*>
  password: <*-*手动马赛克*-*>
  mobile_style: true
  concurrency: 5
  use_login: true
Event:
  mute: true
  permchange: true
log_level: INFO
name: Ptilopsis
master: <*-*手动马赛克*-*>
admins:
- <*-*手动马赛克*-*>
- <*-*手动马赛克*-*>
max_subsubscribe: 10
access_control: false

在此处填写 Mirai 日志

�[92m2022-09-10 02:55:33 I/main: Starting mirai-console...�[0m�[m
�[92m2022-09-10 02:55:33 I/main: Backend: version 2.12.1, built on 2022-07-31 17:49:27.�[0m�[m
�[92m2022-09-10 02:55:33 I/main: Frontend Terminal: version 2.12.1, provided by Mamoe Technologies�[0m�[m
�[92m2022-09-10 02:55:33 I/main: Welcome to visit https://mirai.mamoe.net/�[0m�[m
�[91m2022-09-10 02:55:33 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".�[0m�[m
�[91m2022-09-10 02:55:33 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation�[0m�[m
�[91m2022-09-10 02:55:33 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.�[0m�[m
�[92m2022-09-10 02:55:34 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.2�[0m�[m
�[92m2022-09-10 02:55:34 I/plugin: Successfully loaded plugin MCL Addon v2.0.2�[0m�[m
�[92m2022-09-10 02:55:34 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop�[0m�[m
�[92m2022-09-10 02:55:34 I/Mirai HTTP API: ********************************************************�[0m�[m
�[91m2022-09-10 02:55:34 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".�[0m�[m
�[91m2022-09-10 02:55:34 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation�[0m�[m
�[91m2022-09-10 02:55:34 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.�[0m�[m
�[92m2022-09-10 02:55:34 I/http adapter: >>> [http adapter] is listening at http://0.0.0.0:34986�[0m�[m
�[92m2022-09-10 02:55:34 I/ws adapter: >>> [ws adapter] is listening at ws://0.0.0.0:34986�[0m�[m
�[92m2022-09-10 02:55:34 I/Mirai HTTP API: Http api server is running with verifyKey: <*-*手动马赛克*-*>
�[92m2022-09-10 02:55:34 I/Mirai HTTP API: adaptors: [http,ws]�[0m�[m
�[92m2022-09-10 02:55:34 I/Mirai HTTP API: ********************************************************�[0m�[m
�[92m2022-09-10 02:55:34 I/MCL Addon: iTXTech MCL Version: 2.1.0-71ec418�[0m�[m
�[91m2022-09-10 02:55:34 W/MCL Addon: iTXTech Soyuz 未安装,Soyuz MCL Handler 特性已禁用�[0m�[m
�[92m2022-09-10 02:55:34 I/main: 2 plugin(s) enabled.�[0m�[m
�[92m2022-09-10 02:55:34 I/main: Auto-login 339865157�[0m�[m
�[91m2022-09-10 02:55:34 W/stderr: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...�[0m�[m
�[92m2022-09-10 02:55:35 I/Bot.339865157: Loaded account secrets from local cache.�[0m�[m
�[92m2022-09-10 02:55:35 I/Bot.339865157: Saved account secrets to local cache for fast login.�[0m�[m
�[92m2022-09-10 02:55:35 I/Bot.339865157: Login successful.�[0m�[m
�[0m2022-09-10 02:55:36 V/Bot.339865157: Event: BotOnlineEvent(bot=Bot(339865157))�[0m�[m
�[92m2022-09-10 02:55:36 I/Bot.339865157: Bot login successful.�[0m�[m
�[92m2022-09-10 02:55:36 I/main: mirai-console started successfully.�[0m�[m
�[0m2022-09-10 09:27:27 V/Bot.339865157: Friend(1070330078) <- BBot-Graia成功启动。\n当前 Ptilopsis 共加入了 4 个群�[0m�[m
�[0m2022-09-10 09:27:27 V/Bot.339865157: Friend(1070330078) <- [Bilibili推送] 缓存登录完成�[0m�[m
�[0m2022-09-10 09:27:30 V/Bot.339865157: Friend(1070330078) <- [BiliBili推送] 将对 9 个 UP 进行监控,初始化完成�[0m�[m

在此处填写 BBot 日志

2022-09-10 09:27:25.240 | SUCCESS  | core.log:<module>:59 - 成功重载 logger,当前日志等级为 INFO
2022-09-10 09:27:25.245 | INFO     | bot:<module>:14 - BBot is starting...
2022-09-10 09:27:25.251 | INFO     | core.announcement:base_telemetry:76 - 
                     //
         \\         //
          \\       //
    ##DDDDDDDDDDDDDDDDDDDDDD##
    ## DDDDDDDDDDDDDDDDDDDD ##   ________  ________  ________  _________
    ## hh                hh ##  |\   __  \|\   __  \|\   __  \|\___   ___\
    ## hh    //    \\    hh ##  \ \  \|\ /\ \  \|\ /\ \  \|\  \|___ \  \_|
    ## hh   //      \\   hh ##   \ \   __  \ \   __  \ \  \\\  \   \ \  \
    ## hh                hh ##    \ \  \|\  \ \  \|\  \ \  \\\  \   \ \  \
    ## hh      wwww      hh ##     \ \_______\ \_______\ \_______\   \ \__\
    ## hh                hh ##      \|_______|\|_______|\|_______|    \|__|
    ## MMMMMMMMMMMMMMMMMMMM ##
    ##MMMMMMMMMMMMMMMMMMMMMM##  Release 1.0.0. Powered by graia-ariadne 0.8.4.
        \/            \/

graia-ariadne: 0.8.4
2022-09-10 09:27:25.254 | DEBUG    | logging:callHandlers:1661 - Using selector: EpollSelector
2022-09-10 09:27:25.255 | DEBUG    | graia.saya:require:111 - require function
2022-09-10 09:27:25.313 | DEBUG    | logging:callHandlers:1661 - ('CREATE TABLE IF NOT EXISTS "dynamic_push" ("id" INTEGER NOT NULL PRIMARY KEY, "uid" VARCHAR(255) NOT NULL, "uname" VARCHAR(255) NOT NULL, "dyn_id" VARCHAR(255) NOT NULL, "dyn_type" VARCHAR(255) NOT NULL, "dyn_text" VARCHAR(255), "push_groups" INTEGER NOT NULL, "push_time" DATETIME NOT NULL)', [])
2022-09-10 09:27:25.314 | DEBUG    | logging:callHandlers:1661 - ('CREATE UNIQUE INDEX IF NOT EXISTS "dynamicpush_dyn_id" ON "dynamic_push" ("dyn_id")', [])
2022-09-10 09:27:25.314 | DEBUG    | logging:callHandlers:1661 - ('CREATE TABLE IF NOT EXISTS "live_push" ("id" INTEGER NOT NULL PRIMARY KEY, "uid" VARCHAR(255) NOT NULL, "room_name" VARCHAR(255), "room_area_parent" VARCHAR(255), "room_area" VARCHAR(255), "statu" INTEGER NOT NULL, "push_groups" INTEGER NOT NULL, "push_time" DATETIME NOT NULL)', [])
2022-09-10 09:27:25.314 | DEBUG    | logging:callHandlers:1661 - ('CREATE TABLE IF NOT EXISTS "sub_list" ("id" INTEGER NOT NULL PRIMARY KEY, "uid" VARCHAR(255) NOT NULL, "uname" VARCHAR(255) NOT NULL, "nick" VARCHAR(255), "group" VARCHAR(255) NOT NULL, "atall" INTEGER NOT NULL, "live" INTEGER NOT NULL, "dynamic" INTEGER NOT NULL)', [])
2022-09-10 09:27:25.390 | SUCCESS  | function:<module>:39 - [function] 加载完成
2022-09-10 09:27:25.392 | INFO     | graia.saya:require:134 - module loading finished: function
2022-09-10 09:27:25.393 | INFO     | launart.manager:launch_blocking:446 - Starting launart main task...
2022-09-10 09:27:25.395 | INFO     | launart.manager:launch:319 - Launching 5 components as async task...
2022-09-10 09:27:25.401 | INFO     | graia.ariadne.service:base_telemetry:105 - 
    _         _           _
   / \   _ __(_) __ _  __| |_ __   ___
  / _ \ | '__| |/ _` |/ _` | '_ \ / _ \
 / ___ \| |  | | (_| | (_| | | | |  __/
/_/   \_\_|  |_|\__,_|\__,_|_| |_|\___|

graia-amnesia: 0.5.8
graia-ariadne: 0.8.4
graia-broadcast: 0.18.2
graia-saya: 0.0.16
graia-scheduler: 0.0.8
2022-09-10 09:27:25.404 | INFO     | launart.manager:_launchable_task_done_callback:59 - [elizabeth.connection.339865157.http_client_connection] completed.
2022-09-10 09:27:25.405 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:25.406 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:25.406 | DEBUG    | function.pusher.dynamic:main:52 - [Dynamic Pusher] Dynamic Pusher is not init
2022-09-10 09:27:25.406 | SUCCESS  | launart.manager:launch:358 - Layer #1:[http.universal_client, cache.client] preparation completed.
2022-09-10 09:27:25.408 | INFO     | function.event.bot_launch:main:23 - 正在获取浏览器版本
2022-09-10 09:27:25.413 | SUCCESS  | launart.manager:launch:358 - Layer #3:[elizabeth.service] preparation completed.
2022-09-10 09:27:25.415 | INFO     | launart.manager:launch:363 - All components prepared, start blocking phase.
2022-09-10 09:27:25.469 | SUCCESS  | graia.ariadne.connection.ws:_:60 - Successfully got session key
2022-09-10 09:27:25.920 | INFO     | function.event.bot_launch:main:27 - [BiliBili推送] 浏览器启动完成,当前版本 5.0 (Linux; Android 10; RMX1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36
2022-09-10 09:27:25.923 | INFO     | function.event.bot_launch:main:32 - [BiliBili推送] 正在获取首页 Cookie
2022-09-10 09:27:25.958 | DEBUG    | logging:callHandlers:1661 - HTTP Request: GET https://bilibili.com/ "HTTP/1.1 301 Moved Permanently"
2022-09-10 09:27:26.410 | INFO     | function.pusher.init:init:76 - [BiliBili推送] 当前为登录模式,正在进行登录流程
2022-09-10 09:27:26.587 | DEBUG    | logging:callHandlers:1661 - HTTP Request: GET https://www.bilibili.com/ "HTTP/1.1 302 Found"
2022-09-10 09:27:27.221 | DEBUG    | logging:callHandlers:1661 - HTTP Request: GET https://www.bilibili.com/?rt=<*-*手动马赛克*-*> "HTTP/1.1 200 OK"
2022-09-10 09:27:27.222 | DEBUG    | function.event.bot_launch:main:34 - <Cookies <*-*手动马赛克*-*>>
2022-09-10 09:27:27.223 | INFO     | function.event.bot_launch:main:36 - Graia 成功启动
2022-09-10 09:27:27.334 | INFO     | graia.ariadne.model:log:84 - 339865157: [SEND][Well404(1070330078)] <- BBot-Graia成功启动。\n当前 Ptilopsis 共加入了 4 个群
2022-09-10 09:27:27.397 | DEBUG    | function.pusher.dynamic:debug:131 - {'liveing': {}, 'offset': None, 'init': False, 'dynamic_updateing': False, 'live_updateing': False}
2022-09-10 09:27:27.600 | DEBUG    | logging:callHandlers:1661 - HTTP Request: POST https://passport.bilibili.com/api/v2/oauth2/refresh_token?access_token=<*-*手动马赛克*-*> "HTTP/1.1 200 OK"
2022-09-10 09:27:27.632 | SUCCESS  | function.pusher.init:init:84 - [Bilibili推送] 缓存登录完成
2022-09-10 09:27:27.730 | INFO     | graia.ariadne.model:log:84 - 339865157: [SEND][Well404(1070330078)] <- [Bilibili推送] 缓存登录完成
2022-09-10 09:27:27.732 | INFO     | function.pusher.init:init:166 - [Bilibili推送] 登录完成
2022-09-10 09:27:27.907 | DEBUG    | logging:callHandlers:1661 - HTTP Request: GET https://passport.bilibili.com/api/v2/oauth2/info?access_token<*-*手动马赛克*-*> "HTTP/1.1 200 OK"
2022-09-10 09:27:27.958 | DEBUG    | function.pusher.init:init:168 - {'mid': <*-*手动马赛克*-*>, 'access_token': '<*-*手动马赛克*-*>', 'expires_in': 15552000}
2022-09-10 09:27:27.959 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:27.960 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:28.211 | INFO     | function.pusher.init:init:245 - [BiliBili推送] 直播初始化完成,当前 0 个 UP 正在直播
2022-09-10 09:27:28.408 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:28.408 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:28.409 | DEBUG    | function.pusher.dynamic:main:52 - [Dynamic Pusher] Dynamic Pusher is not init
2022-09-10 09:27:29.213 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:29.397 | DEBUG    | function.pusher.dynamic:debug:131 - {'liveing': {}, 'offset': None, 'init': False, 'dynamic_updateing': False, 'live_updateing': False}
2022-09-10 09:27:29.737 | INFO     | function.pusher.init:init:258 - [BiliBili推送] 动态初始化完成,offset:704035841054343176
2022-09-10 09:27:29.740 | SUCCESS  | function.pusher.init:init:260 - [BiliBili推送] 将对 9 个 UP 进行监控,初始化完成
2022-09-10 09:27:30.845 | INFO     | graia.ariadne.model:log:84 - 339865157: [SEND][Well404(1070330078)] <- [BiliBili推送] 将对 9 个 UP 进行监控,初始化完成
2022-09-10 09:27:31.398 | DEBUG    | function.pusher.dynamic:debug:131 - {'liveing': {}, 'offset': 704035841054343176, 'init': True, 'dynamic_updateing': False, 'live_updateing': False}
2022-09-10 09:27:31.411 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:31.411 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:31.412 | DEBUG    | function.pusher.dynamic:main:65 - [Dynamic] Start to get dynamic list
2022-09-10 09:27:31.412 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:31.868 | DEBUG    | function.pusher.dynamic:main:75 - [Dynamic] Start to check dynamic
2022-09-10 09:27:31.869 | DEBUG    | function.pusher.dynamic:main:77 - [Dynamic] Get 20 dynamics
2022-09-10 09:27:31.869 | DEBUG    | function.pusher.dynamic:main:84 - [Dynamic] 0 new dynamics
2022-09-10 09:27:31.869 | DEBUG    | function.pusher.dynamic:main:125 - [Dynamic] Updateing finished
2022-09-10 09:27:32.373 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:32.373 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:32.374 | DEBUG    | function.pusher.dynamic:main:65 - [Dynamic] Start to get dynamic list
2022-09-10 09:27:32.374 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:32.397 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:32.397 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:32.570 | DEBUG    | logging:callHandlers:1661 - HTTP Request: POST https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids?<*-*手动马赛克*-*> "HTTP/1.1 200 OK"
2022-09-10 09:27:32.897 | DEBUG    | function.pusher.dynamic:main:75 - [Dynamic] Start to check dynamic
2022-09-10 09:27:32.897 | DEBUG    | function.pusher.dynamic:main:77 - [Dynamic] Get 20 dynamics
2022-09-10 09:27:32.898 | DEBUG    | function.pusher.dynamic:main:84 - [Dynamic] 0 new dynamics
2022-09-10 09:27:32.898 | DEBUG    | function.pusher.dynamic:main:125 - [Dynamic] Updateing finished
2022-09-10 09:27:33.399 | DEBUG    | function.pusher.dynamic:debug:131 - {'liveing': {}, 'offset': 704035841054343176, 'init': True, 'dynamic_updateing': False, 'live_updateing': False, 'last_update': '2022-09-10 09:27:32', 'last_finish': '2022-09-10 09:27:32'}
2022-09-10 09:27:33.401 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:33.401 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:33.401 | DEBUG    | function.pusher.dynamic:main:65 - [Dynamic] Start to get dynamic list
2022-09-10 09:27:33.402 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:33.605 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:33.606 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:33.781 | DEBUG    | logging:callHandlers:1661 - HTTP Request: POST https://api.live.bilibili.com/room/v1/Room/get_status_info_by_uids?<*-*手动马赛克*-*> "HTTP/1.1 200 OK"
2022-09-10 09:27:33.861 | DEBUG    | function.pusher.dynamic:main:75 - [Dynamic] Start to check dynamic
2022-09-10 09:27:33.861 | DEBUG    | function.pusher.dynamic:main:77 - [Dynamic] Get 20 dynamics
2022-09-10 09:27:33.861 | DEBUG    | function.pusher.dynamic:main:84 - [Dynamic] 0 new dynamics
2022-09-10 09:27:33.861 | DEBUG    | function.pusher.dynamic:main:125 - [Dynamic] Updateing finished
2022-09-10 09:27:34.364 | DEBUG    | function.pusher.dynamic:main:47 - [Dynamic Pusher] Dynamic Pusher running now...
2022-09-10 09:27:34.364 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:34.364 | DEBUG    | function.pusher.dynamic:main:65 - [Dynamic] Start to get dynamic list
2022-09-10 09:27:34.365 | DEBUG    | logging:callHandlers:1661 - Using AsyncIOEngine.POLLER as I/O engine
2022-09-10 09:27:34.816 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:34.817 | DEBUG    | logging:callHandlers:1661 - ('SELECT DISTINCT "t1"."uid" FROM "sub_list" AS "t1"', [])
2022-09-10 09:27:34.856 | DEBUG    | function.pusher.dynamic:main:75 - [Dynamic] Start to check dynamic
2022-09-10 09:27:34.856 | DEBUG    | function.pusher.dynamic:main:77 - [Dynamic] Get 20 dynamics
2022-09-10 09:27:34.856 | DEBUG    | function.pusher.dynamic:main:84 - [Dynamic] 0 new dynamics
2022-09-10 09:27:34.857 | DEBUG    | function.pusher.dynamic:main:125 - [Dynamic] Updateing finished

其他信息

Ubuntu 20.04.1 LTS
log-30.log
debug.log

[Bug] 视频总结无法正常调用配置中的代理

bot版本1.6.0

配置项
Bilibili:
openai_summarization: true
openai_api_toke: sk-xxxxxx
openai_model: gpt-3.5-turbo
openai_proxy: http://127.0.0.1:7890
openai_cooldown: 60

日志是这个

2023-08-01 15:46:21.878 | INFO | aunly_bbot.function.command.content_resolve:openai_summarization:86 - 开始进行 AI 总结:489038935
2023-08-01 15:46:21.878 | INFO | aunly_bbot.function.command.content_resolve:openai_summarization:92 - 489038935 总结不存在,正在尝试请求......
2023-08-01 15:46:21.882 | DEBUG | aunly_bbot.utils.content_summarise:subtitle_summarise:12 - [{'role': 'user', 'content': '使用以下Markdown模板为我总结视频字幕数据,除非字幕中的内容无意义,或者内容较少无法总结,或者未提供字幕数据,或者无有效内容,你就不使用模板回复,只回复“无意义”:\n## 概述\n{内容,尽可能精简总结内容不要太详细}\n## 要点\n- {使用不重复并合适的emoji,仅限一个,禁止重复} {内容不换行大于15字,可多项,条数与有效内容数量呈正比}\n不要随意翻译任何内容。仅使用中文总结。\n不说与总结无关的其他内容,你的回复仅限固定格式提供的“概述”和“要点”两项。\n视频标题名称为“固态硬盘:最大容量突破60TB”,视频字幕数据如下,立刻开始总结:“2023年7月 solo 弹发布了新一代旗舰固态硬盘 第五p 5336 多种产品形态对应不同的容量规格 第三季度率先出货的是一l 最大容量 30.72 tb 第四季度推出 u2 并扩容 e l 最大容量升至 61.44t 这一数字是 solo 上代旗舰第五杠 p5430 最大容量的整整两倍 更为直观的说法是 eu 服务器将拥有最大 pb 的存储空间 solid 表示 之所以能翻倍刷新记录 实现这一历史性的容量 是因为迭代到最新版本的闪存颗粒研发成果 192 层 q lc 对于市场普遍的文 klc 色变现象 solid 的最新产品的可靠性问题 再次做了详细的阐释 第五杠 p5336 最大写入寿命为 65 p bw 即便把 5年质保期当作总寿命 每天可写入的数据量也足有 35.6 tb 我们在测试和品控方面的严格程度 即便放眼整个行业也是遥遥领先的 旗舰型号 模拟运行时间超过 600万年 都没有出现过 哪怕一次故障 性能方面 solidm 官方目前只放出了 15.36 tb 型号的相关规格参数 物理接口 pci 四点乘四顺序读取速度 7000 兆每秒 顺序写入速度3100 兆每秒四k 随机读取 1005k 16k 随机写入 35k 写入寿命 14.11 pp w 平均故障间隔时间 200万小时 仅从数据上来看 除了顺序写手速度和 pc 40x4 的 tlc 固态硬盘存在明显差距 其他顾客基本持平 然而塑料 但官方知道企业用户真正在乎什么 因此知道该强调什么 如果可靠性不再是问题 那剩下的就只有成本成本成本 苏拉丹表示 在容量需求一致的情况下 相较 ntlc 固态硬盘阵列 d5 杠 p5336 可节省 17%的总油油成本 机架占地面积减1.9 倍 发热与功耗减少 1.25 倍 当前机械硬盘最大容量仍停留在 26 tb 级别 按照 solo dm 所说 企业级 q lc 固态硬盘无论是容量 性能寿命还是可靠性都已远超机械硬盘 那么真实的市场情况如何呢 商用端客户普遍趋于保守 导致相关市场存在一定的滞后性 可以理解 这是固态硬盘厂商更喜欢说法 参考答案之一是 正如前文所述 企业的核心考量仍然是成本 目前超大容量固态硬盘的价格仍太过高昂 机械硬盘每 gb 单价不知比固态硬盘低到哪里去 因此标准结局是有恃无恐的 机械硬盘厂商为改善业绩 甚至于近日上调了机械硬盘终端采购价格 对此争取活就一份温馨美好的祝福 傲慢的厂商终将为其傲慢付出代价 以上的终极火力的 近期存储行业相关资讯的这样分析 你的关注和三连是我坚持下去的最大动力 那么你是怎么看不到我就”'}]
2023-08-01 15:46:21.882 | WARNING | aunly_bbot.function.command.content_resolve:openai_summarization:111 - 视频 489038935 总结失败:{}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.