jcjrobert / nonebot-plugin-random Goto Github PK
View Code? Open in Web Editor NEWNonebot2 通用抽图/语音插件
License: MIT License
Nonebot2 通用抽图/语音插件
License: MIT License
可以配置里加一项群内cd吗,cd时间内继续刷指令不会回复,防止有群友一直刷
安装过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
新建文件夹还是要手动,不如加到指令里,再通过其他插件的重启来读取
日志:
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')
期望的方法,就是对随机抽出来的图回复“删除”,就能删了
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.