Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 输入加入银趴出现异常 #16

Open
Anarrogantcat opened this issue Sep 12, 2024 · 0 comments
Open

Bug: 输入加入银趴出现异常 #16

Anarrogantcat opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Anarrogantcat
Copy link

操作系统

Windows

Python 版本

3.11

NoneBot 版本

2.3.3

适配器

2.2.2

协议端

00

描述问题

输入加入银趴指令报错

复现步骤

09-12 20:17:55 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.nonebot_plugin_chikari_yinpa, lineno=56) failed.
Traceback (most recent call last):
File "", line 17, in
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot_init_.py", line 335, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\PcApp\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\PcApp\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 641, in run_until_complete
self.run_forever()
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 608, in run_forever
self._run_once()
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 1936, in _run_once
handle._run()
File "C:\PcApp\Python\Python311\Lib\asyncio\events.py", line 84, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(

File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\dependencies_init
.py", line 94, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\Jianr\Documents\LiluoBOT\src\plugins\nonebot_plugin_chikari_yinpa\handles.py", line 78, in yinpa_join
if (int)(arg_list[1]) <= 0:
IndexError: list index out of range

期望的结果

No response

截图或日志

09-12 20:17:55 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.nonebot_plugin_chikari_yinpa, lineno=56) failed.
Traceback (most recent call last):
File "", line 17, in
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot_init_.py", line 335, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\PcApp\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
File "C:\PcApp\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 641, in run_until_complete
self.run_forever()
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 608, in run_forever
self._run_once()
File "C:\PcApp\Python\Python311\Lib\asyncio\base_events.py", line 1936, in _run_once
handle._run()
File "C:\PcApp\Python\Python311\Lib\asyncio\events.py", line 84, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(

File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\message.py", line 428, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "C:\Users\Jianr\Documents\LiluoBOT.venv\Lib\site-packages\nonebot\dependencies_init
.py", line 94, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\Jianr\Documents\LiluoBOT\src\plugins\nonebot_plugin_chikari_yinpa\handles.py", line 78, in yinpa_join
if (int)(arg_list[1]) <= 0:
IndexError: list index out of range

@Anarrogantcat Anarrogantcat added the bug Something isn't working label Sep 12, 2024
@Anarrogantcat Anarrogantcat changed the title Bug: 出现异常 Bug: 输入加入银趴出现异常 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant