bot-ssttkkl / nonebot-plugin-access-control Goto Github PK
View Code? Open in Web Editor NEWNonebot 权限控制插件
License: MIT License
Nonebot 权限控制插件
License: MIT License
如题,pydantic中的BaseSettings已经迁移到了pydantic-settings,如果安装最新的pydantic会报错
python版本:3.8.10
报错如下:[ERROR] nonebot | Failed to import "nonebot_plugin_access_control"
Traceback (most recent call last):
File "", line 18, in
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 130, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/load.py", line 64, in load_all_plugins
return manager.load_all_plugins()
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 176, in load_all_plugins
return set(
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 177, in
filter(None, (self.load_plugin(name) for name in self.available_plugins))
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 142, in load_plugin
module = importlib.import_module(name)
File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot/plugin/manager.py", line 242, in exec_module
super().exec_module(module)
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_access_control/init.py", line 35, in
from . import patcher
File "/usr/kabobot/.venv/lib/python3.8/site-packages/nonebot_plugin_access_control/patcher.py", line 7
@get_driver().on_startup
^
SyntaxError: invalid syntax
有一部分插件年久失修(确信),无法使用pydanticV2加载,但是大部分都能用V1加载,有没有办法让ac也能在V1加载
ls列表有正常显示deny状态
11-17 11:55:35 [ERROR] nonebot_plugin_orm | 启动检查失败
11-17 11:55:35 [ERROR] uvicorn | Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\starlette\routing.py", line 677, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\nonebot\drivers\fastapi.py", line 168, in _lifespan_manager
await self._lifespan.startup()
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\nonebot\drivers\_lifespan.py", line 36, in startup
await self._run_lifespan_func(self._startup_funcs)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\nonebot\drivers\_lifespan.py", line 30, in _run_lifespan_func
await cast(ASYNC_LIFESPAN_FUNC, func)()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\__init__.py", line 85, in init_orm
await greenlet_spawn(migrate.check, alembic_config)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 192, in greenlet_spawn
result = context.throw(*sys.exc_info())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\migrate.py", line 505, in check
script.run_env()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\alembic\script\base.py", line 579, in run_env
util.load_python_file(self.dir, "env.py")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\alembic\util\pyfiles.py", line 93, in load_python_file
module = load_module_py(module_id, path)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\alembic\util\pyfiles.py", line 109, in load_module_py
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\templates\generic\env.py", line 84, in <module>
await_fallback(run_migrations_online())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 154, in await_fallback
return current.driver.switch(awaitable) # type: ignore[no-any-return]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 187, in greenlet_spawn
value = await result
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\templates\generic\env.py", line 78, in run_migrations_online
await connection.run_sync(do_run_migrations)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\ext\asyncio\engine.py", line 841, in run_sync
return await greenlet_spawn(fn, self._proxied, *arg, **kw)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\util\_concurrency_py3k.py", line 194, in greenlet_spawn
result = context.switch(value)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\templates\generic\env.py", line 68, in do_run_migrations
context.run_migrations()
File "<string>", line 8, in run_migrations
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\alembic\runtime\environment.py", line 938, in run_migrations
self.get_context().run_migrations(**kw)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\alembic\runtime\migration.py", line 612, in run_migrations
for step in self._migrations_fn(heads, self):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_orm\migrate.py", line 493, in retrieve_migrations
raise click.UsageError("目标数据库未更新到最新迁移. 请通过 `nb orm upgrade` 升级数据库后重试.")
click.exceptions.UsageError: 目标数据库未更新到最新迁移. 请通过 `nb orm upgrade` 升级数据库后重试.
11-17 11:55:35 [ERROR] uvicorn | Application startup failed. Exiting.
unhandled exception during asyncio.run() shutdown
task: <Task finished name='Task-14' coro=<get_fastest_mirror.<locals>.head_mirror() done, defined at C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\meme_generator\download.py:24> exception=ConnectError('All connection attempts failed')>
anyio._backends._asyncio.ExceptionGroup: 0 exceptions were raised in the task group:
----------------------------
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_exceptions.py", line 10, in map_exceptions
yield
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\backends\asyncio.py", line 111, in connect_tcp
stream: anyio.abc.ByteStream = await anyio.connect_tcp(
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\anyio\_core\_sockets.py", line 225, in connect_tcp
raise OSError("All connection attempts failed") from cause
OSError: All connection attempts failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_async\connection.py", line 86, in handle_async_request
raise exc
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_async\connection.py", line 63, in handle_async_request
stream = await self._connect(request)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_async\connection.py", line 111, in _connect
stream = await self._network_backend.connect_tcp(**kwargs)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\backends\auto.py", line 29, in connect_tcp
return await self._backend.connect_tcp(
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\backends\asyncio.py", line 109, in connect_tcp
with map_exceptions(exc_map):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\httpcore\_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectError: All connection attempts failed
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Python\Python310\site-packages\meme_generator\download.py", line 26, in head_mirror
response = await client.head(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1815, in head
return await self.request(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1617, in send
response = await self._send_handling_auth(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1682, in _send_handling_redirects
response = await self._send_single_request(request)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_client.py", line 1719, in _send_single_request
response = await transport.handle_async_request(request)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_transports\default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\httpx\_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: All connection attempts failed
加载最新版本的插件时出现错误。
问题重现:安装插件后,nonebot加载插件时出错
上个月也没出现问题,这次重装机器人后不知道出错了。
Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\QQrobot\QQrobot\bot.py", line 18, in <module>
nonebot.load_from_toml("pyproject.toml")
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\load.py", line 125, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\load.py", line 62, in load_all_plugins
return manager.load_all_plugins()
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\manager.py", line 175, in load_all_plugins
return set(
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\manager.py", line 176, in <genexpr>
filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\manager.py", line 141, in load_plugin
module = importlib.import_module(name)
File "C:\ProgramData\Anaconda3\envs\robot\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot\plugin\manager.py", line 241, in exec_module
super().exec_module(module)
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\__init__.py", line 60, in <module>
from .service import get_nonebot_service
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\__init__.py", line 1, in <module>
from .base import Service
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\base.py", line 12, in <module>
from .impl.permission import ServicePermissionImpl
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\impl\permission.py", line 7, in <module>
from ..interface.permission import IServicePermission
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\interface\__init__.py", line 1, in <module>
from .service import IService
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\interface\service.py", line 5, in <module>
from .permission import IServicePermission
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\service\interface\permission.py", line 4, in <module>
from nonebot_plugin_access_control.event_bus import T_Listener
File "C:\ProgramData\Anaconda3\envs\robot\lib\site-packages\nonebot_plugin_access_control\event_bus.py", line 38, in <module>
T_Filter = Callable[[...], bool]
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 829, in __getitem__
return self.__getitem_inner__(params)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 243, in inner
return func(*args, **kwds)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 839, in __getitem_inner__
args = tuple(_type_check(arg, msg) for arg in args)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 839, in <genexpr>
args = tuple(_type_check(arg, msg) for arg in args)
File "C:\ProgramData\Anaconda3\envs\robot\lib\typing.py", line 151, in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: Callable[[arg, ...], result]: each arg must be a type. Got Ellipsis.
先上代码
#响应器
get_fuck = on_fullmatch('测码')
#ac插件
from nonebot import require
require('nonebot_plugin_access_control_api')
from nonebot_plugin_access_control_api.service import create_plugin_service
ex_service = create_plugin_service('nonebot_plugin_fuck')
get_fuck_subservice = ex_service.create_subservice('get_fuck')
get_fuck_subservice.patch_matcher(get_fuck)
然后触发这个get_fuck
的响应器之后就报错
11-23 14:23:33 [SUCCESS] nonebot | OneBot V11 2697537872 | [message.group.normal]: Message -936202536 from 3098632978@[ 群:860501695] '测码'
11-23 14:23:33 [INFO] nonebot | Event will be handled by Matcher(type='message', module=src.plugins.fuck, lineno=17)
11-23 14:23:33 [ERROR] nonebot | Error when running RunPreProcessors. Running cancelled!
Traceback (most recent call last):
File "<string>", line 15, in <module>
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\__init__.py", line 331, in run
get_driver().run(*args, **kwargs)
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\drivers\fastapi.py", line 201, in run
uvicorn.run(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\uvicorn\main.py", line 587, in run
server.run()
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\uvicorn\server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Python310\lib\asyncio\base_events.py", line 1909, in _run_once
handle._run()
File "C:\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\message.py", line 414, in _run_matcher
if not await _apply_run_preprocessors(
> File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\message.py", line 257, in _apply_run_preprocessors
await asyncio.gather(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\utils.py", line 196, in run_coro_with_catch
return await coro
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot\dependencies\__init__.py", line 113, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot_plugin_access_control\service\_impl\patcher.py", line 77, in check
await service.check(bot, event, throw_on_fail=True)
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot_plugin_access_control_api\service\interface\service_base.py", line 66, in check
return await self.check_by_subject(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot_plugin_access_control_api\service\service.py", line 61, in check_by_subject
await self.acquire_token_for_rate_limit_by_subjects_receiving_result(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot_plugin_access_control_api\service\service.py", line 178, in acquire_token_for_rate_limit_by_subjects_receiving_result
return await self._rate_limit_impl.acquire_token_for_rate_limit_by_subjects_receiving_result(
File "D:\bot\Pallas-Bot-master\venv\lib\site-packages\nonebot_plugin_access_control\service\_impl\rate_limit.py", line 172, in acquire_token_for_rate_limit_by_subjects_receiving_result
assert len(subject) > 0, "require at least one subject"
AssertionError: require at least one subject
通过不同的失败警告,提示用户正确使用方式
e.g. 八小时冷却的命令提示“请八小时后再试”,十分钟冷却的命令提示“请十分钟后再试”
限流
执行下面的指令后,所有用户每天只能调用100次任意指令,且每分钟只能调用三次指令/echo
/ac limit add --sbj all --srv nonebot --span 1d --limit 100
/ac limit add --sbj all --srv echo --span 1m --limit 3
我想设置所有用户共享CD的话,应该怎样做
发送消息为:/ac limit add --sbj all --srv nonebot_plugin_memes --span 90s --limit 2
前端:LLOneBot v3.26.5
06-15 13:43:09 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_access_control.matcher, lineno=9)
06-15 13:43:09 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_access_control.matcher, lineno=9) running complete
06-15 13:43:09 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_access_control.matcher, lineno=9) failed.
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Pyhton\Lib\site-packages\nonebot\__init__.py", line 335, in run
get_driver().run(*args, **kwargs)
File "C:\Pyhton\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\Pyhton\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Pyhton\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Pyhton\Lib\asyncio\runners.py", line 194, in run
return runner.run(main)
File "C:\Pyhton\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\Pyhton\Lib\asyncio\base_events.py", line 674, in run_until_complete
self.run_forever()
File "C:\Pyhton\Lib\asyncio\windows_events.py", line 322, in run_forever
super().run_forever()
File "C:\Pyhton\Lib\asyncio\base_events.py", line 641, in run_forever
self._run_once()
File "C:\Pyhton\Lib\asyncio\base_events.py", line 1987, in _run_once
handle._run()
File "C:\Pyhton\Lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Pyhton\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "C:\Pyhton\Lib\site-packages\nonebot\message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Pyhton\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Pyhton\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "C:\Pyhton\Lib\site-packages\nonebot\dependencies\__init__.py", line 94, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Pyhton\Lib\site-packages\nonebot_plugin_access_control\matcher.py", line 41, in handle_cmd
await send_multipart(matcher, f.getvalue())
File "C:\Pyhton\Lib\site-packages\nonebot_plugin_access_control\matcher.py", line 27, in send_multipart
await matcher.send(msg.strip())
File "C:\Pyhton\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 566, in send
return await bot.send(event=event, message=_message, **kwargs)
File "C:\Pyhton\Lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 228, in send
return await self.__class__.send_handler(self, event, message, **kwargs)
File "C:\Pyhton\Lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 181, in send
return await bot.send_msg(**params)
File "C:\Pyhton\Lib\site-packages\nonebot\internal\adapter\bot.py", line 122, in call_api
raise exception
File "C:\Pyhton\Lib\site-packages\nonebot\internal\adapter\bot.py", line 97, in call_api
result = await self.adapter._call_api(self, api, **data)
File "C:\Pyhton\Lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 147, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "C:\Pyhton\Lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: ActionFailed(status='failed', retcode=1200, data=None, message='消息体无法解析,请检查是否发送了不支持的消息类型', wording='消息体无法解析,请检查是否发送了不支持的消息类型', echo='10')
对当前主体下的所有用户,使用服务时共享同一cd
#4 但我真的想要这个...
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.