Open ShellyMon opened 1 year ago
启动的时候报的
还有就是exh的cookic是“;”结束吗?我超时就是因为这个
还有就是exh的cookic是“;”结束吗?我超时就是因为这个
最后不要有分号
这张截图
pyproject.toml
文件你有修改过吗
这张截图
pyproject.toml
文件你有修改过吗
没有修改过
修改了cookic的内容后还是报错
10-19 15:09:47 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.YetAnotherPicSearch) failed.
Traceback (most recent call last):
File "
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 419, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 759, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 734, in simple_run await handler( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\dependencies__init.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearch\init.py", line 333, in handle_image_search Network(proxies=config.proxy, cookies=config.exhentai_cookies, timeout=60) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\PicImageSearch\network.py", line 32, in init__ key, value = line.strip().split("=", 1) ValueError: not enough values to unpack (expected 2, got 1)
这张截图
pyproject.toml
文件你有修改过吗
pyproject.toml
中的plugins = ["nonebot_plugin_apscheduler", "nonebot_plugin_reboot"]
这里安装了什么插件就要填什么插件,如果没安装rebot就删去
nonebot_plugin_reboot
我试试
pyproject.toml
中的plugins = ["nonebot_plugin_apscheduler", "nonebot_plugin_reboot"]
这里安装了什么插件就要填什么插件,如果没安装rebot就删去
依旧报错
修改了cookic的内容后还是报错 10-19 15:09:47 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.YetAnotherPicSearch) failed. Traceback (most recent call last): File "", line 1, in File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 122, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 135, in _main return self._bootstrap(parent_sentinel) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run self._target(*self._args, self._kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot_plugin_reboot\reloader.py", line 27, in _run _nb_run(*args, *kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebotinit.py", line 333, in run get_driver().run(args, kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\drivers\fastapi.py", line 199, in run uvicorn.run( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\uvicorn\main.py", line 587, in run server.run() File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\uvicorn\server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete self.run_forever() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever self._run_once() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once handle._run() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 467, in check_and_run_matcher await _run_matcher(
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 419, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 759, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 734, in simple_run await handler( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\dependenciesinit.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(values) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearchinit.py", line 333, in handle_image_search Network(proxies=config.proxy, cookies=config.exhentai_cookies, timeout=60) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\PicImageSearch\network.py", line 32, in init** key, value = line.strip().split("=", 1) ValueError: not enough values to unpack (expected 2, got 1)
ex的cookie格式EXHENTAI_COOKIES="yay=你的; ipb_member_id=你的; ipb_pass_hash=你的; igneous=你的" # exhentai cookie
修改了cookic的内容后还是报错 10-19 15:09:47 [ERROR] nonebot | Running Matcher(type='message', module=src.plugins.YetAnotherPicSearch) failed. Traceback (most recent call last): File "", line 1, in File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 122, in spawn_main exitcode = _main(fd, parent_sentinel) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\spawn.py", line 135, in _main return self._bootstrap(parent_sentinel) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 314, in _bootstrap self.run() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\multiprocessing\process.py", line 108, in run self._target(*self._args, self._kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot_plugin_reboot\reloader.py", line 27, in _run _nb_run(*args, *kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebotinit.py", line 333, in run get_driver().run(args, kwargs) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\drivers\fastapi.py", line 199, in run uvicorn.run( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\uvicorn\main.py", line 587, in run server.run() File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\uvicorn\server.py", line 61, in run return asyncio.run(self.serve(sockets=sockets)) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run return runner.run(main) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run return self._loop.run_until_complete(task) File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 640, in run_until_complete self.run_forever() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\windows_events.py", line 321, in run_forever super().run_forever() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 607, in run_forever self._run_once() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 1922, in _run_once handle._run() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\asyncio\events.py", line 80, in _run self._context.run(self._callback, *self._args) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 467, in check_and_run_matcher await _run_matcher(
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 419, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 759, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 734, in simple_run await handler( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\dependenciesinit.py", line 108, in call return await cast(Callable[..., Awaitable[R]], self.call)(values) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearchinit.py", line 333, in handle_image_search Network(proxies=config.proxy, cookies=config.exhentai_cookies, timeout=60) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\PicImageSearch\network.py", line 32, in init** key, value = line.strip().split("=", 1) ValueError: not enough values to unpack (expected 2, got 1)
ex的cookie格式
EXHENTAI_COOKIES="yay=你的; ipb_member_id=你的; ipb_pass_hash=你的; igneous=你的" # exhentai cookie
原来如此,是等于号的问题
yay应该是可以不用填的,之前逆向我逆过
cookic修正之后搜图还是报错,但是报错内容不一样了
来个更完整的图看看
10-19 15:16:24 [SUCCESS] nonebot | OneBot V11 2649033257 | [message.private.friend]: Message 414686663 from 1762889143 '--ex[image:file=934f1e614138607547c7398c13bea00f.image,url=https://c2cpicdw.qpic.cn/offpic_new/1762889143//1762889143-35460285...]'
10-19 15:16:24 [INFO] nonebot | Event will be handled by Matcher(type='message', module=src.plugins.YetAnotherPicSearch)10-19 15:16:31 [ERROR] YetAnotherPicSearch | 该图 [https://gchat.qpic.cn/gchatpic_new/0/0-0-934F1E614138607547C7398C13BEA00F/0] 搜图失败
Traceback (most recent call last):
File "
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearch__init.py", line 139, in image_search async for attempt in AsyncRetrying( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\tenacity_asyncio.py", line 71, in anext do = self.iter(retry_state=self._retry_state) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\tenacity__init.py", line 325, in iter raise retry_exc.reraise() File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\tenacity\init__.py", line 158, in reraise raise self.last_attempt.result() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 449, in result return self.get_result() File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures_base.py", line 401, in get_result raise self._exception File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearch__init.py", line 146, in image_search result = await ehentai_search(url, client, hide_img) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\YetAnotherPicSearch\ehentai.py", line 27, in ehentai_search if res := await ehentai.search(url, ex=ex): File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\PicImageSearch\ehentai.py", line 46, in search return EHentaiResponse(resp.text, resp.url) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\PicImageSearch\model\ehentai.py", line 42, in init__ data = PyQuery(fromstring(resp_text, parser=utf8_parser)) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\lxml\html\init.py", line 873, in fromstring doc = document_fromstring(html, parser=parser, base_url=base_url, **kw) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\lxml\html\init__.py", line 761, in document_fromstring raise etree.ParserError( lxml.etree.ParserError: Document is empty
来个更完整的图看看
太长了,复制给你吧
cookic修正之后搜图还是报错,但是报错内容不一样了
没提取到网页内容,可能是访问白屏,你试试浏览器带cookie访问exhentai看看是不是白屏状态
exh我搞定了
就差ssr的问题了
就差ssr的问题了
rss报错的完整图我看看
就差ssr的问题了
rss报错的完整图我看看
10-19 15:36:24 [SUCCESS] nonebot | Succeeded to load plugin "echo" from "nonebot.plugins.echo"
10-19 15:36:24 [ERROR] nonebot | Failed to import "ELF_RSS2"
Traceback (most recent call last):
File "
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\plugin\manager.py", line 146, in load_plugin module = importlib.import_module( File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 1204, in _gcd_import File " init super().init( File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init__ raise validation_error pydantic.error_wrappers.ValidationError: 1 validation error for ELFConfig rsshub ensure this value has at least 1 characters (type=value_error.any_str.min_length; limit_value=1)", line 1176, in _find_and_load File " ", line 1147, in _find_and_load_unlocked File " ", line 690, in _load_unlocked File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module super().exec_module(module) File " ", line 940, in exec_module File " ", line 241, in _call_with_frames_removed File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2__init__.py", line 8, in from . import command File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\command__init__.py", line 1, in from . import ( File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\command\add_cookies.py", line 9, in from .. import my_trigger as tr File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\my_trigger.py", line 10, in from . import rss_parsing File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict()) File "pydantic\env_settings.py", line 40, in pydantic.env_settings.BaseSettings.
老样子,太长了给你截图
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in
from .config import DATA_PATH, config
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in
config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
rss_proxy不用加http://
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
rss_proxy不用加
http://
我删除掉了还是报错
10-19 16:11:47 [ERROR] nonebot | Failed to import "ELF_RSS2"
Traceback (most recent call last):
File "
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\plugin\manager.py", line 146, in load_plugin module = importlib.import_module( File "C:\Users\17628\AppData\Local\Programs\Python\Python311\Lib\importlib__init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "
", line 1204, in _gcd_import File " init super().init( File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init__ raise validation_error pydantic.error_wrappers.ValidationError: 1 validation error for ELFConfig rsshub ensure this value has at least 1 characters (type=value_error.any_str.min_length; limit_value=1)", line 1176, in _find_and_load File " ", line 1147, in _find_and_load_unlocked File " ", line 690, in _load_unlocked File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\plugin\manager.py", line 242, in exec_module super().exec_module(module) File " ", line 940, in exec_module File " ", line 241, in _call_with_frames_removed File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2__init__.py", line 8, in from . import command File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\command__init__.py", line 1, in from . import ( File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\command\add_cookies.py", line 9, in from .. import my_trigger as tr File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\my_trigger.py", line 10, in from . import rss_parsing File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict()) File "pydantic\env_settings.py", line 40, in pydantic.env_settings.BaseSettings.
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
rss_proxy不用加
http://
我删除掉了还是报错
RSSHUB="" # rsshub订阅地址
这里要加个地址啊,你可以在"https://rsshub.rssforever.com","https://rsshub.feeded.xyz","https://rsshub.app"
中任选一个填进去,多余的可以放在下方的RSSHUB_BACKUP
中
File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\rss_parsing.py", line 11, in from .config import DATA_PATH, config File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\config.py", line 59, in config = ELFConfig(**get_driver().config.dict())
配置文件错误,导致读取错误
rss_proxy不用加
http://
我删除掉了还是报错
RSSHUB="" # rsshub订阅地址
这里要加个地址啊,你可以在"https://rsshub.rssforever.com","https://rsshub.feeded.xyz","https://rsshub.app"
中任选一个填进去,多余的可以放在下方的RSSHUB_BACKUP
中
号
可以了,不报错了
rss指令要怎么使用?add群聊还是私聊都没有什么反馈
rss指令要怎么使用?add群聊还是私聊都没有什么反馈
举例: 群:@机器人 /add B站动态-碧蓝航线 /bilibili/user/dynamic/233114659 私聊机器人:/add B站动态-碧蓝航线 /bilibili/user/dynamic/233114659
其余的命令在https://github.com/luoxuebinfei/luo_bot#指令 看
更多的rss链接可以在https://docs.rsshub.app/zh/routes/social-media#bilibili-up-zhu-dong-tai 中查看 使用rsshub的链接可以不加前缀,其余rss链接要用完整路径
私聊
要在add前加上你在.env
中配置的起始字符COMMAND_START=["/"] # 配置命令起始字符
删除指令
私聊
要在add前加上你在
.env
中配置的起始字符COMMAND_START=["/"] # 配置命令起始字符
删除指令
了解,搜图也适用于这个规则吗
私聊 要在add前加上你在
.env
中配置的起始字符COMMAND_START=["/"] # 配置命令起始字符
删除指令了解,搜图也适用于这个规则吗
适用,除了私聊单发图片也可触发,可以在.env
中配置
# 私聊发送图片立即搜图,否则需要先发送搜图命令
SEARCH_IMMEDIATELY = True # True是开启,False是关闭
私聊 要在add前加上你在
.env
中配置的起始字符COMMAND_START=["/"] # 配置命令起始字符
删除指令了解,搜图也适用于这个规则吗
适用,除了私聊单发图片也可触发,可以在
.env
中配置# 私聊发送图片立即搜图,否则需要先发送搜图命令 SEARCH_IMMEDIATELY = True # True是开启,False是关闭
怎么设置订阅的触发时间,还是会自动触发
私聊 要在add前加上你在
.env
中配置的起始字符COMMAND_START=["/"] # 配置命令起始字符
删除指令了解,搜图也适用于这个规则吗
适用,除了私聊单发图片也可触发,可以在
.env
中配置# 私聊发送图片立即搜图,否则需要先发送搜图命令 SEARCH_IMMEDIATELY = True # True是开启,False是关闭
怎么设置订阅的触发时间,还是会自动触发
默认5分钟检查一次 在指令中都有啊
这样就是把更新频率改成1分钟一次了
这样就是把更新频率改成1分钟一次了
主要是我等了几分钟没有发送订阅的消息
这样就是把更新频率改成1分钟一次了
主要是我等了几分钟没有发送订阅的消息
哦,我理解错了,检查更新,检查是否重复,重复则不发送,不重复则发送,这样?我希望第一次订阅能发送一次
这样就是把更新频率改成1分钟一次了
主要是我等了几分钟没有发送订阅的消息
哦,我理解错了,检查更新,检查是否重复,重复则不发送,不重复则发送,这样?我希望第一次订阅能发送一次
从设计上来看rss不是这样用的,第一次订阅获取以往一定数量的推文,在这之后发布的新推文比对老推文有没有,没有再推送给你,这样你就不会错过新推文
所以这个更新频率是指每隔多久检查一次有没有新推文
学会了
浏览器可以正常访问,但是bot报错
正常,使用别人建的服务有时候就是这样的,所以我现在在用自建服务https://docs.rsshub.app/zh/install#%E6%89%8B%E5%8A%A8%E9%83%A8%E7%BD%B2
或者填上备用地址
越来越复杂了233
用备用也行,我发的那三个就是我现在用的备用,也可以在网上找别人部署分享的
10-19 17:23:17 [ERROR] nonebot | Running Matcher(type='meta_event', module=src.plugins.ELF_RSS2) failed.
Traceback (most recent call last):
File "
File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\message.py", line 419, in _run_matcher await matcher.run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 759, in run await self.simple_run(bot, event, state, stack, dependency_cache) File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\internal\matcher\matcher.py", line 734, in simple_run await handler( File "C:\Users\17628.virtualenvs\luo_bot-PMOFlPx0\Lib\site-packages\nonebot\dependencies__init.py", line 108, in call__ return await cast(Callable[..., Awaitable[R]], self.call)(**values) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2__init__.py", line 50, in start await send_message_to_admin(f"ELF_RSS 订阅器启动成功!\n{boot_message}", bot) File "D:\111-shelly\github\luo_bot\luo_bot\src\plugins\ELF_RSS2\utils.py", line 159, in send_message_to_admin await bot.send_private_msg(user_id=int(list(config.superusers)[0]), message=message) IndexError: list index out of range
请问一下这个是什么报错,我讲ENABLE_BOOT_MESSAGE=True 设置为TRUE的时候报错
最后一个报错了
soutubot的cf盾关了,想到前几天就有点难受了