ayanamiblhx / nonebot_plugin_setu Goto Github PK
View Code? Open in Web Editor NEW基于nonebot2、loliconImage的涩图插件
License: Apache License 2.0
基于nonebot2、loliconImage的涩图插件
License: Apache License 2.0
如果发送图片加个发几张的参数就好了。
是否支持socks5
机器人被风控如何解决
[ERROR] nonebot_plugin_setu | <class 'httpx.ConnectError'>
nonebot | Matcher(type='message', module=nonebot_plugin_setu) running complete
我是用的limus-bot 一个QQ机器人 我是想限制bot发送图片 就是不要让bot刷屏 给bot冷却时间 他也是以nonebot为原型弄的,请问大佬,可以给个教程吗?
他文件夹里下了200多张,但是我关闭在线发图之后再发涩图,他说没有涩图啦,也没有报错啥的
在批量下载数目为单次下载数目的倍数时会导致变量remain == 0(getPic.py)进而导致API请求错误
[ERROR] nonebot_plugin_setu |
[ERROR] nonebot_plugin_setu | 下载时出现异常
[ERROR] nonebot | Running matcher <Matcher from nonebot_plugin_setu, type=message, priority=1, temp=False> failed.
ssl.SSLSyscallError: Some I/O error occurred (_ssl.c:1129
anyio.BrokenResourceError
httpcore.ConnectError
httpx.ConnectError
nonebot.adapters.onebot.v11.exception.ActionFailed: <ActionFailed data=None, echo={'seq': 2},
msg=SEND_MSG_API_ERROR, retcode=100, status=failed, wording=请参考 go-cqhttp 端输出>
别问,问就是群里有男桐
希望可以加个开关
启动时报如下错误,请问一下该怎么解决
04-05 02:04:36 [ERROR] nonebot | Failed to import "nonebot_plugin_setu"
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/local/lib/python3.9/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/uvicorn/subprocess.py", line 76, in subprocess_started
target(sockets=sockets)
File "/home/ubuntu/.local/lib/python3.9/site-packages/uvicorn/server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/ubuntu/.local/lib/python3.9/site-packages/uvicorn/server.py", line 67, in serve
config.load()
File "/home/ubuntu/.local/lib/python3.9/site-packages/uvicorn/config.py", line 458, in load
self.loaded_app = import_from_string(self.app)
File "/home/ubuntu/.local/lib/python3.9/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/ubuntu/mybot/MMToubot/./bot.py", line 28, in
nonebot.load_from_toml("pyproject.toml")
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/load.py", line 119, in load_from_toml
return load_all_plugins(plugins, plugin_dirs)
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/load.py", line 53, in load_all_plugins
return manager.load_all_plugins()
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 128, in load_all_plugins
return set(
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 129, in
filter(None, (self.load_plugin(name) for name in self.list_plugins()))
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 104, in load_plugin
module = importlib.import_module(name)
File "/usr/local/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot/plugin/manager.py", line 194, in exec_module
super().exec_module(module)
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot_plugin_setu/init.py", line 31, in
Config.create_file()
File "/home/ubuntu/.local/lib/python3.9/site-packages/nonebot_plugin_setu/create_file.py", line 33, in create_file
os.mkdir('loliconImages/r18')
FileNotFoundError: [Errno 2] No such file or directory: 'loliconImages/r18'
作者试过,0环境,安装这个使用吗
链接发多了会被tx误判为《涉嫌诈骗》。。
魔法是啥意思
在gitPic.py line:25
行async with AsyncClient() as client:未使用代理会导致不停提示机器人被风控
建议改为:
http = proxy_http if Config().proxies_switch else None socks = proxy_socks if Config().proxies_switch else None async with AsyncClient(proxies=http, transport=socks) as client:
新年快乐!
使用时注意到触发指令不需要额外添加前缀,虽然有CD限制,但有时在聊天时会提到关键词
希望增加可选可自定义的命令前缀(或默认使用机器人的命令前缀)
如果已经具备该功能,请告诉我在哪里调试它
感谢!
一次性缓存多张色图会随缘报错
不如每几分钟自动缓存几张(
rt
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.