shadow403 / nonebot_plugin_bilirequestall Goto Github PK
View Code? Open in Web Editor NEW以B站UID审核入群(分群管理)
License: MIT License
以B站UID审核入群(分群管理)
License: MIT License
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有概率报找不到需要多使用几次才成功
如果可以的话能放示例图吗 一开始指令输错了几十次
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的功能吗?
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 | [] 群 创建的
群() 收到来自用户 。(3092) 的加群请求.
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': 635, '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'
就是必须要粉丝牌多少级以上才允许加入,看描述好像没有这个功能(
实际测试下来如果发送的验证消息里的uid未满足条件,这个加群请求就会一直不处理
是否可以添加一个配置项让未满足条件的加群请求自动拒绝并说明原因?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.