Giter VIP home page Giter VIP logo

nonebot_plugin_bilirequestall's People

Contributors

shadow403 avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

sakurayun

nonebot_plugin_bilirequestall's Issues

发送加群请求后插件报错

01-19 04:02:10 [ERROR] nonebot | Running Matcher(type='request', module=weial_bot.plugins.nonebot_plugin_BiliRequestAll) failed.
Traceback (most recent call last):
  File "c:\weial\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\weial\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\WeiAL\Python38\Scripts\nb.exe\__main__.py", line 7, in <module>
    sys.exit(main())
  File "c:\weial\python38\lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "c:\weial\python38\lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "c:\weial\python38\lib\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\weial\python38\lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\weial\python38\lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "c:\weial\python38\lib\site-packages\nb_cli\commands\main.py", line 30, in run
    run_bot(file, app)
  File "c:\weial\python38\lib\site-packages\nb_cli\handlers\deploy.py", line 25, in run_bot
    nonebot.run(app=f"{module_name}:{app}")
  File "c:\weial\python38\lib\site-packages\nonebot\__init__.py", line 273, in run
    get_driver().run(*args, **kwargs)
  File "c:\weial\python38\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
    uvicorn.run(
  File "c:\weial\python38\lib\site-packages\uvicorn\main.py", line 569, in run
    server.run()
  File "c:\weial\python38\lib\site-packages\uvicorn\server.py", line 60, in run
    return asyncio.run(self.serve(sockets=sockets))
  File "c:\weial\python38\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "c:\weial\python38\lib\asyncio\base_events.py", line 603, in run_until_complete
    self.run_forever()
  File "c:\weial\python38\lib\asyncio\windows_events.py", line 316, in run_forever
    super().run_forever()
  File "c:\weial\python38\lib\asyncio\base_events.py", line 570, in run_forever
    self._run_once()
  File "c:\weial\python38\lib\asyncio\base_events.py", line 1859, in _run_once
    handle._run()
  File "c:\weial\python38\lib\asyncio\events.py", line 81, in _run
    self._context.run(self._callback, *self._args)
  File "c:\weial\python38\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
    await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "c:\weial\python38\lib\site-packages\nonebot\message.py", line 188, in _run_matcher
    await matcher.run(bot, event, state, stack, dependency_cache)
  File "c:\weial\python38\lib\site-packages\nonebot\internal\matcher\matcher.py", line 727, in run
    await self.simple_run(bot, event, state, stack, dependency_cache)
  File "c:\weial\python38\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
    await handler(
  File "c:\weial\python38\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
    return await cast(Callable[..., Awaitable[R]], self.call)(**values)
  File "D:\bot\NoneBot\WeiAL-Bot\.\weial_bot\plugins\nonebot_plugin_BiliRequestAll\__init__.py", line 344, in request_fans_
    status = request(groupid, uid, getID)
  File "D:\bot\NoneBot\WeiAL-Bot\.\weial_bot\plugins\nonebot_plugin_BiliRequestAll\__init__.py", line 159, in request
    config_json = json.load(open(config_fullPath))
  File "c:\weial\python38\lib\json\__init__.py", line 293, in load
    return loads(fp.read(),
UnicodeDecodeError: 'gbk' codec can't decode byte 0x9e in position 52: illegal multibyte sequence

加群通知报错

06-14 01:57:00 [ERROR] nonebot | Running Matcher(type='request', module=nonebot_plugin_BiliRequestAll) failed.
Traceback (most recent call last):
File "", line 17, in
File "C:\robot.venv\lib\site-packages\nonebot_init_.py", line 309, in run
get_driver().run(*args, **kwargs)
File "C:\robot.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 198, in run
uvicorn.run(
File "C:\robot.venv\lib\site-packages\uvicorn\main.py", line 578, in run
server.run()
File "C:\robot.venv\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_unt
il_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_
forever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_for
ever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1909, in _run_o
nce
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\robot.venv\lib\site-packages\nonebot\message.py", line 467, in check_and_run_matcher
await _run_matcher(

File "C:\robot.venv\lib\site-packages\nonebot\message.py", line 419, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\robot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 753, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\robot.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 728, in simple_run
await handler(
File "C:\robot.venv\lib\site-packages\nonebot\dependencies_init
.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\robot.venv\lib\site-packages\nonebot_plugin_BiliRequestAll_init_.py", line 354, in request_fans_
status = request(groupid, uid, getID)
File "C:\robot.venv\lib\site-packages\nonebot_plugin_BiliRequestAll_init_.py", line 182, in request
if (load_switcher_captain == 1):
UnboundLocalError: local variable 'load_switcher_captain' referenced before assignment

之前是找不到captain.json 创建了空json之后就是现在的报错
/init有概率报找不到需要多使用几次才成功
如果可以的话能放示例图吗 一开始指令输错了几十次

功能建议:审核日志统计

  • 审批统计:在switcher_group目录下生成对应群号的表格文档,统计通过的加群请求的[QQ号/B站UID/B站ID/粉丝牌等级/审批日期]等信息
  • 插件日志:处理的所有加群请求信息,包括未满足条件的加群请求

下载后显示找不到插件

Traceback (most recent call last):
File "D:\zm\DDBOT\AIAS\bot.py", line 14, in
nonebot.load_from_toml("pyproject.toml")
File "D:\zm\DDBOT\AIAS.venv\lib\site-packages\nonebot\plugin\load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "D:\zm\DDBOT\AIAS.venv\lib\site-packages\nonebot\plugin\load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "D:\zm\DDBOT\AIAS.venv\lib\site-packages\nonebot\plugin\manager.py", line 176, in load_all_plugins
return set(
File "D:\zm\DDBOT\AIAS.venv\lib\site-packages\nonebot\plugin\manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "D:\zm\DDBOT\AIAS.venv\lib\site-packages\nonebot\plugin\manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_groupmanager'
08-29 09:30:42 [ERROR] nonebot | Failed to import "nonebot_plugin_BiliRequestAll"

功能建议

可以增加uid审核后,机器人帮忙把那个人的群称呼更改为UID对应ID的功能吗?

nb run后报错 No module named 'nonebot_plugin_BiliRequestAll'

05-18 22:04:46 [ERROR] nonebot | Failed to import "nonebot_plugin_BiliRequestAll"
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1\bot.py", line 14, in
nonebot.load_from_toml("pyproject.toml")
File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1.venv\lib\site-packages\nonebot\plugin\load.py", line 125,
in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1.venv\lib\site-packages\nonebot\plugin\load.py", line 62,
in load_all_plugins
return manager.load_all_plugins()
File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1.venv\lib\site-packages\nonebot\plugin\manager.py", line 1
75, in load_all_plugins
return set(
File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1.venv\lib\site-packages\nonebot\plugin\manager.py", line 1
76, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))

File "C:\Users\Administrator\Desktop\ChatGPT3.5\nonebot\No1.venv\lib\site-packages\nonebot\plugin\manager.py", line 1
41, in load_plugin
module = importlib.import_module(name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\importlib_init_.py", line 126, in import_m
odule
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'nonebot_plugin_BiliRequestAll'
没有找到?是nb plugin install nonebot-plugin-BiliRequestAll下载位置出错吗

发送加群请求后报错

nonebot_plugin_gocqhttp | [] 群 创建的
群(
) 收到来自用户 。(3
092) 的加群请求.
02-26 19:00:56 [SUCCESS] nonebot | OneBot V11 **** | [request.group.add]: {'time': 1677409256, 'self_id': 1272650654, 'post_type': 'request', 'request_type': 'group', 'sub_type': 'add', 'group_id': 6
35, 'user_id': 33**92, 'comment': '问题:B站ID\n答案:13389464', 'flag': '1677409255936242', 'invitor_id': 0}
02-26 19:00:56 [INFO] nonebot | Event will be handled by Matcher(type='request', module=nonebot_plugin_BiliRequestAll)
02-26 19:00:56 [INFO] nonebot | Matcher(type='request', module=nonebot_plugin_BiliRequestAll) running complete
02-26 19:00:56 [ERROR] nonebot | Running Matcher(type='request', module=nonebot_plugin_BiliRequestAll) failed.
Traceback (most recent call last):
File "", line 17, in
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot_init_.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 187, in run
uvicorn.run(
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Soft\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\Soft\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Soft\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete
self.run_forever()
File "C:\Soft\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Soft\Python311\Lib\asyncio\base_events.py", line 607, in run_forever
self._run_once()
File "C:\Soft\Python311\Lib\asyncio\base_events.py", line 1919, in _run_once
handle._run()
File "C:\Soft\Python311\Lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\message.py", line 141, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)

File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\message.py", line 187, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 732, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 707, in simple_run
await handler(
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot\dependencies_init
.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot_plugin_BiliRequestAll_init_.py", line 354, in request_fans_
status = request(groupid, uid, getID)
File "C:\Users\QAQ\Desktop\QQbot\test.venv\Lib\site-packages\nonebot_plugin_BiliRequestAll_init_.py", line 160, in request
config_json = json.load(open(config_fullPath, encoding = 'utf-8'))
FileNotFoundError: [Errno 2] No such file or directory: 'group_switcher\650616435\config.json'

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.