Code Monkey home page Code Monkey logo

nonebot_plugin_blive_danmaku's Introduction

About me

💫 摸鱼是第一生产力 💫


✨ 一个臭底边搬砖的打工人,主要写写.Net相关,会但不精,全靠AI纠错
✨ 前端略懂一二,能跑起来就行
✨ 平常没什么爱好,就是喜欢看纸片人
✨ 仓库净是些摸鱼的产物,好孩子不要学


😋 我的学习记录


nonebot_plugin_blive_danmaku's People

Contributors

zangxx66 avatar

Stargazers

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

Watchers

 avatar

nonebot_plugin_blive_danmaku's Issues

运行时出现报错

01-16 00:29:35 [ERROR] nonebot | Error when running startup function. Ignored!
Traceback (most recent call last):
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/sqlite/client.py", line 34, in translate_exceptions_
    return await func(self, query, *args)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/sqlite/client.py", line 153, in execute_script
    async with self.acquire_connection() as connection:
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/base/client.py", line 220, in __aenter__
    await self.ensure_connection()
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/base/client.py", line 216, in ensure_connection
    await self.client.create_connection(with_db=True)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/sqlite/client.py", line 69, in create_connection
    await self._connection._connect()
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/aiosqlite/core.py", line 137, in _connect
    self._connection = await future
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/aiosqlite/core.py", line 102, in run
    result = function()
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/aiosqlite/core.py", line 397, in connector
    return sqlite3.connect(loc, **kwargs)
sqlite3.OperationalError: unable to open database file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 19, in <module>
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/__init__.py", line 331, in run
    get_driver().run(*args, **kwargs)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/drivers/none.py", line 56, in run
    loop.run_until_complete(self._serve())
  File "/usr/lib/python3.10/asyncio/base_events.py", line 636, in run_until_complete
    self.run_forever()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 603, in run_forever
    self._run_once()
  File "/usr/lib/python3.10/asyncio/base_events.py", line 1909, in _run_once
    handle._run()
  File "/usr/lib/python3.10/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/drivers/none.py", line 60, in _serve
    await self._startup()
> File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/drivers/none.py", line 68, in _startup
    await self._lifespan.startup()
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/internal/driver/_lifespan.py", line 41, in startup
    await self._run_lifespan_func(self._startup_funcs)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot/internal/driver/_lifespan.py", line 35, in _run_lifespan_func
    await cast(ASYNC_LIFESPAN_FUNC, func)()
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/nonebot_plugin_blive_danmaku/database/db.py", line 28, in init
    await Tortoise.generate_schemas()  # type:ignore
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/__init__.py", line 640, in generate_schemas
    await generate_schema_for_client(connection, safe)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/utils.py", line 31, in generate_schema_for_client
    await generator.generate_from_string(schema)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/base/schema_generator.py", line 448, in generate_from_string
    await self.client.execute_script(creation_string)
  File "/root/livepushfortest/.venv/lib/python3.10/site-packages/tortoise/backends/sqlite/client.py", line 36, in translate_exceptions_
    raise OperationalError(exc)
tortoise.exceptions.OperationalError: unable to open database file

使用命令”订阅列表“,提示”错误码: -403, 信息: 访问权限不足“

image

报错代码:
06-23 21:44:38 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list)
06-23 21:44:39 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list) running complete
06-23 21:44:39 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_blive_danmaku.command.sub.sub_list) failed.
Traceback (most recent call last):
File "/home/zhenxun_bot/bot.py", line 24, in
nonebot.run()
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/init.py", line 309, in run
get_driver().run(*args, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 198, in run
uvicorn.run(
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/uvicorn/main.py", line 569, in run
server.run()
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/message.py", line 467, in check_and_run_matcher
await _run_matcher(

File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/message.py", line 419, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 753, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 728, in simple_run
await handler(
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot/dependencies/init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/nonebot_plugin_blive_danmaku/command/sub/sub_list.py", line 21, in _
user = await get_user_info(sub.uid, reqtype="web", proxies=None)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/user/init.py", line 12, in get_user_info
return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/utils/init.py", line 98, in get
return await request("GET", url, **kwargs)
File "/home/poetry-cache/virtualenvs/zhenxun-bot-UH4sDRIh-py3.10/lib/python3.10/site-packages/bilireq/utils/init.py", line 89, in request
raise ResponseCodeError(
bilireq.exceptions.ResponseCodeError: 错误码: -403, 信息: 访问权限不足

Bug?:开启路灯后报错 >>>

room=21452505 _handle_command() failed, command={'cmd': 'DANMU_MSG', 'info': [[0, 1, 25, 5816798, 1688413880504, 1688411487, 0, 'd332ad00', 0, 0, 0, '', 0, '{}', '{}', {'mode': 0, 'show_player_type': 0, 'extra': '{"send_from_me":false,"mode":0,"color":5816798,"dm_type":0,"font_size":25,"player_mode":1,"show_player_type":0,"content":"8888","user_hash":"3543313664","emoticon_unique":"","bulge_display":0,"recommend_score":1,"main_state_dm_color":"","objective_state_dm_color":"","direction":0,"pk_direction":0,"quartet_direction":0,"anniversary_crowd":0,"yeah_space_type":"","yeah_space_url":"","jump_to_url":"","space_type":"","space_url":"","animation":{},"emots":null,"is_audited":false,"id_str":"0481be3d673828ceae59ea2da4cd7a3411","icon":null}'}, {'activity_identity': '', 'activity_source': 0, 'not_show': 0}, 0], '8888', [0, '濑***', 0, 0, 0, 10000, 1, ''], [18, '脆鲨', '七海Nana7mi', 21452505, 13081892, '', 0, 13081892, 13081892, 13081892, 0, 1, 434334701], [10, 0, 9868950, '>50000', 0], ['', ''], 0, 0, None, {'ts': 1688413880, 'ct': '11ED4B71'}, 0, 0, None, None, 0, 63, [0]], 'dm_v2': 'CiIwNDgxYmUzZDY3MzgyOGNlYWU1OWVhMmRhNGNkN2EzNDExEAEYGSDeg+MCKghkMzMyYWQwMDIEODg4ODi4gb3qkTFI37qMpQZiAIoBAJoBEAoIMTFFRDRCNzEQuM2MpQaiAZIBEgbmv5EqKioiSmh0dHBzOi8vaTAuaGRzbGIuY29tL2Jmcy9mYWNlL2NiMDY1M2E4N2IxYTNjMGFmZjllYzY0MmJiNjIzNTdkZmZlMTcwNTEuanBnOJBOQAFaIAgSEgbohIbpsqggpLqeBjCkup4GOKS6ngZApLqeBlABYg8IChCWrdoEGgY+NTAwMDBqAHIAegCqARoI7deNzwESDeS4g+a1t05hbmE3bWkY2a2dCg=='}
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_blive_danmaku\blivedm\blivedm\handlers.py", line 164, in handle
await callback(self, client, command)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_blive_danmaku\command\subscribe\danmaku.py", line 73, in _on_danmaku
await save_danmaku(client.room_id, client.room_owner_uid, message.uname, int(message.timestamp / 1000), message.msg)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_blive_danmaku\command\subscribe\danmaku.py", line 138, in save_danmaku
room = room_list[0]
IndexError: list index out of range
error log

关于域名端口转发的问题

如果自定义端口转发,不用默认的80端口,改用8001,可以成功打开面板,但是所有的封面都获取不到。
我查了一下好像请求封面的url没有指定端口号,这个要怎么设置呢?
image

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.