Coder Social home page Coder Social logo

nonebot-plugin-random's People

Contributors

jcjrobert avatar

Stargazers

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

Watchers

 avatar

Forkers

suica0w0

nonebot-plugin-random's Issues

语音上传失败: upload failed: 199

安装过https://github.com/KroMiose/nonebot_plugin_naturel_gpt
gocp回复
[2023-02-10 14:52:17] [WARNING]: 警告: 群 语音上传失败: upload failed: 199
[2023-02-10 14:52:17] [WARNING]: 群消息发送失败: 消息为空.
控制台
02-10 14:52:17 [ERROR] nonebot | Running Matcher(type='message', module=extensive_plugin.nonebot-plugin-random.matchers) failed.
Traceback (most recent call last):
File "D:\BOT\zhenxun_bot\bot.py", line 22, in
nonebot.run()
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot_init_.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 634, in run_until_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 601, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1905, in _run_once
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\message.py", line 188, in run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\internal\matcher\matcher.py", line 727, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
await handler(
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\dependencies_init
.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "D:\BOT\zhenxun_bot\extensive_plugin\nonebot-plugin-random\matchers.py", line 103, in handle
await bot_send(
File "D:\BOT\zhenxun_bot\extensive_plugin\nonebot-plugin-random\matchers.py", line 50, in bot_send
await bot.send(
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 219, in send
return await self.class.send_handler(self, event, message, **kwargs)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 174, in send
return await bot.send_msg(**params)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\internal\adapter\bot.py", line 120, in call_api
raise exception
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\internal\adapter\bot.py", line 98, in call_api
result = await self.adapter._call_api(self, api, **data)
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 132, in _call_api
return handle_api_result(
File "C:\Users\Administrator\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-l9AehN_x-py3.9\lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed

使用shamrock时随机功能会出现错误

日志:
11-11 23:43:30 [SUCCESS] nonebot | OneBot V11 985393579 | [message.group.normal]: Message 1998120617 from *@[群:] '随机飞舞'
11-11 23:43:30 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_repeater)
11-11 23:43:30 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_repeater) running complete
11-11 23:43:30 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot-plugin-random.matchers)
11-11 23:43:30 [INFO] nonebot | Matcher(type='message', module=nonebot-plugin-random.matchers) running complete
11-11 23:43:30 [ERROR] nonebot | Running Matcher(type='message', module=nonebot-plugin-random.matchers) failed.
Traceback (most recent call last):
File "", line 17, in
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/init.py", line 333, in run
get_driver().run(*args, **kwargs)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/drivers/fastapi.py", line 199, in run
uvicorn.run(
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/uvicorn/main.py", line 578, in run
server.run()
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
File "/Users/justin/miniconda3/envs/bot/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/message.py", line 467, in check_and_run_matcher
await _run_matcher(

File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/message.py", line 419, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/internal/matcher/matcher.py", line 759, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/internal/matcher/matcher.py", line 734, in simple_run
await handler(
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/dependencies/init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot-plugin-random/matchers.py", line 103, in handle
await bot_send(
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot-plugin-random/matchers.py", line 42, in bot_send
await bot.send(
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot_plugin_guild_patch/init.py", line 30, in patched_send
return await original_send(self, event, message, **kwargs)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/adapters/onebot/v11/bot.py", line 220, in send
return await self.class.send_handler(self, event, message, **kwargs)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/adapters/onebot/v11/bot.py", line 174, in send
return await bot.send_msg(**params)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/internal/adapter/bot.py", line 120, in call_api
raise exception
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/internal/adapter/bot.py", line 98, in call_api
result = await self.adapter._call_api(self, api, **data)
File "/Users/justin/lily/.venv/lib/python3.9/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 140, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "/Users/justin/lily/.venv/lib/python3.9/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=35000, data={}, message='消息合成失败,请查看日志或者检查输入。', echo='2')

【报错】图片配置有错

python3.9.15
在bot.py所在文件夹下,data/random下(这个目录没有创建,手动创建的)新建文件夹,放入图片和config.json
image
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.