ljzd-pro / nonebot-plugin-mystool Goto Github PK
View Code? Open in Web Editor NEWQQ聊天、频道机器人插件 | 米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录、原神崩铁便笺提醒
Home Page: https://pypi.org/project/nonebot-plugin-mystool
License: MIT License
QQ聊天、频道机器人插件 | 米游社工具-每日米游币任务、游戏签到、商品兑换、免抓包登录、原神崩铁便笺提醒
Home Page: https://pypi.org/project/nonebot-plugin-mystool
License: MIT License
有没有一键关闭所以进群和加好友欢迎功能,因为其他插件已有类似功能,或不是原神群。
当bot为管理员时,当有入群申请时就会发送欢迎消息,而不是同意后入群再发,希望改进下,群内一个指令就可以设置是否开启,默认关闭,如果可以的话可以加个自定义欢迎。🙏🏻
现象:群聊中用“手动签到”将发送未经过blur()
处理的电话号码。
blur()
的目的就是用来在群聊中保护自己的电话号码,则以下位置缺失一处根据group_event
使用blur()
的判断:坐标:timing.py第191行,缺失一次if not group_event else blur()
以上
米游币任务 - 点赞: 服务器没有正确返回
已有多用户的情况下,新用户进行绑定后其账号数据会包含其他用户的账号数据,而不是只有该用户自己的
v0.1.5,目前存在Bug,兑换商品成功后,机器人不会通知用户,兑换失败的则会通知。
按照文档的要求,我修改了data/nonebot-plugin-mystool/pluginConfig.json中的配置信息,具体更改项为:
"COMMAND_START": "mt ",
"SIGN_TIME": "02:30"
我是安装在docker容器中的,插件我是装在了LittlePaimon下面的。
重启过服务了也没生效,容器也重启过了,也不行。
现有的方案中,私聊过多极为容易风控(我的用户量仅为6),所以希望能将每日任务和签到的结果改在群聊中发送,并合并为一条消息,减少封号几率
例如发送 /删除账号 就会删除该用户所绑定的cookie等信息
日志如下
11-27 16:51:05 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.exchangePlan) failed.
Traceback (most recent call last):
File "C:\Users\YuYue\Desktop\yuyue_bot\bot.py", line 38, in <module>
nonebot.run(app="__mp_main__:app")
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\__init__.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
self.run_forever()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
self._run_once()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
handle._run()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\message.py", line 188, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\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\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
await handler(
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\exchangePlan.py", line 259, in _
exchange_plan = await Exchange(account, good.goodID, uid).async_init()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\exchange.py", line 319, in async_init
"address_id": self.account.address.addressID
AttributeError: 'NoneType' object has no attribute 'addressID'
未登录的提醒触发两次或三次后就不再触发,不想登的人天天会收到消息
登录后签到之前是成功的,我也不知道是环境的原因是不是,后面自动签到总是没有启动,报错[DEBUG] nonebot_plugin_mystool | Traceback (most recent call last): File "/root/my/.venv/lib/python3.9/site-packages/nonebot_plugin_mystool/mybMission.py", line 241, in get_posts async for attempt in tenacity.AsyncRetrying(stop=custom_attempt_times(retry), reraise=True, File "/root/my/.venv/lib/python3.9/site-packages/tenacity/_asyncio.py", line 71, in anext do = self.iter(retry_state=self._retry_state) File "/root/my/.venv/lib/python3.9/site-packages/tenacity/init.py", line 325, in iter raise retry_exc.reraise() File "/root/my/.venv/lib/python3.9/site-packages/tenacity/init.py", line 158, in reraise raise self.last_attempt.result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 439, in result return self.__get_result() File "/usr/local/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result raise self._exception File "/root/my/.venv/lib/python3.9/site-packages/nonebot_plugin_mystool/mybMission.py", line 246, in get_posts res = await self.client.get(URL_GET_POST.format(GAME_ID[game].gids), headers=headers, KeyError: 'bbs'
我怀疑是我Python不对,但是之前用的也是这个python,却可以签到
02-05 12:25:29 [ERROR] nonebot | Failed to import "nonebot_plugin_mystool"
Traceback (most recent call last):
File "F:\BOT\zhenxun_bot\bot.py", line 16, in <module>
nonebot.load_plugins("extensive_plugin")
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.10\lib\site-packages\nonebot\plugin\load.py", line 45, in load_plugins
return manager.load_all_plugins()
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 168, in load_all_plugins
return set(
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 169, in <genexpr>
filter(None, (self.load_plugin(name) for name in self.available_plugins))
> File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 145, in load_plugin
module = importlib.import_module(
File "C:\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.10\lib\site-packages\nonebot\plugin\manager.py", line 233, in exec_module
super().exec_module(module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\__init__.py", line 103, in <module>
__import__(file, globals(), level=1)
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\address.py", line 33, in <module>
COMMAND = list(get_driver().config.command_start)[0] + conf.COMMAND_START
IndexError: list index out of range
[enhancement] 希望增添云原神签到功能(每天可增加游玩时长15分钟)
相关的项目:
https://github.com/fves1997/Cloud-Genshin-Impact
https://github.com/DanKE123abc/CloudGenshinCheckinHelper
https://github.com/HuanLinOTO/GenshinCloudPlayHelper
希望添加ntchat适配器支持
感谢您提供多功能的插件,能否加入导出cookie的功能呢,您的插件采用验证码登录可以获取login_ticket= 的数据,这将简化获取难度。
我是新版真寻改版用户,功能核心代码并未改造,环境win+py39,因不会搭建开发环境所以有此issue…
开debug日志日常测试,发现部分任务总会出现莫名其妙的失败:有返回retcode但返回的data多为null(见日志)
造成的现象就是,任务失败,
因失败现象和不同账户有关系以及总是连续出现(比如我号签到前三天不行也是null,需手动进米游社app签到,但不一定被验证码阻拦,第四天到第七天又能签到成功但,后面又会连续签到失败;便笺功能更是只连续成功过三天,之后一直失败)推测是那边服务器作祟,但我仍想在这里确认三个问题:
这种失败现象是否有办法从用户这边规避?(比如用特殊办法获取特殊cookie啥的)(平台切换成我常用的安卓似乎并不奏效,似乎还是ios成功率高点也挺扯)
这种失败现象是否和bot端网络情况相关?
源码中似乎有对于不同失败情况作出不同提示的部分,但此种…原因可能在于米服务器的情况,源码似乎并未收录,想问下后续有无完善这部分失败提示的打算?
兔年吉祥。
01-26 01:33:39 [ERROR] nonebot_plugin_mystool | 原神实时便笺 - 请求失败
01-26 01:33:39 [DEBUG] nonebot_plugin_mystool | Traceback (most recent call last):
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\bbsAPI.py", line 699, in genshin_status_bbs
async for attempt in tenacity.AsyncRetrying(stop=custom_attempt_times(retry), reraise=True,
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\_asyncio.py", line 69, in __anext__
do = self.iter(retry_state=self._retry_state)
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 362, in iter
raise retry_exc.reraise()
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 195, in reraise
raise self.last_attempt.result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 439, in result
return self.__get_result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 391, in __get_result
raise self._exception
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\bbsAPI.py", line 717, in genshin_status_bbs
status = GenshinStatus().fromBBS(
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\bbsAPI.py", line 326, in fromBBS
self.resin = status['current_resin']
TypeError: 'NoneType' object is not subscriptable
01-26 07:32:36 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:32:36 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:32:41 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:32:41 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:32:46 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:32:46 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:32:51 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:32:51 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:32:55 [INFO] github_sub | github开始检测:HibiKier/zhenxun_bot
01-26 07:32:56 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:32:56 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:33:00 [INFO] nonebot_plugin_mystool | 签到: DS无效,正在在线获取salt以重新生成...
01-26 07:33:00 [INFO] nonebot_plugin_mystool | 读取配置 - 开始下载配置...
01-26 07:33:02 [ERROR] nonebot_plugin_mystool | 签到 - 服务器没有正确返回
01-26 07:33:02 [DEBUG] nonebot_plugin_mystool | 网络请求返回: {"data":null,"message":"invalid request","retcode":-10001}
01-26 07:33:02 [DEBUG] nonebot_plugin_mystool | Traceback (most recent call last):
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\gameSign.py", line 324, in sign
async for attempt in tenacity.AsyncRetrying(stop=custom_attempt_times(retry), reraise=True,
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\_asyncio.py", line 69, in __anext__
do = self.iter(retry_state=self._retry_state)
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 362, in iter
raise retry_exc.reraise()
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 195, in reraise
raise self.last_attempt.result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 439, in result
return self.__get_result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 391, in __get_result
raise self._exception
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\gameSign.py", line 358, in sign
if game not in ["bh3", "wd", "bh2"] and self.signResult["data"]["risk_code"] != 0:
TypeError: 'NoneType' object is not subscriptable
01-26 07:33:24 [ERROR] nonebot_plugin_mystool | 米游币任务 - 讨论区签到: 服务器没有正确返回
01-26 07:33:24 [DEBUG] nonebot_plugin_mystool | 网络请求返回: {"data":null,"message":"","retcode":1034}
01-26 07:33:24 [DEBUG] nonebot_plugin_mystool | Traceback (most recent call last):
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\mybMission.py", line 203, in sign
async for attempt in tenacity.AsyncRetrying(stop=custom_attempt_times(retry), reraise=True,
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\_asyncio.py", line 69, in __anext__
do = self.iter(retry_state=self._retry_state)
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 362, in iter
raise retry_exc.reraise()
File "C:\Users\SERVER\AppData\Local\pypoetry\Cache\virtualenvs\zhenxun-bot-EMkFGUyA-py3.9\lib\site-packages\tenacity\__init__.py", line 195, in reraise
raise self.last_attempt.result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 439, in result
return self.__get_result()
File "C:\Python39\lib\concurrent\futures\_base.py", line 391, in __get_result
raise self._exception
File "F:\BOT\zhenxun_bot\extensive_plugin\nonebot_plugin_mystool\mybMission.py", line 222, in sign
return res.json()["data"]["points"]
TypeError: 'NoneType' object is not subscriptable
发送想要接收奖励的账号UID后机器人没有反应,然后查询兑换里面显示里面没有兑换计划
第二次输入验证码后提示出错,代码如下,请问有解决办法嘛?
12-23 14:12:27 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_mystool.login)
12-23 14:12:27 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.login) running complete
12-23 14:12:27 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.login) failed.
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\nb.exe_main.py", line 7, in
sys.exit(main())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nb_cli\commands\main.py", line 30, in run
run_bot(file, app)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nb_cli\handlers\deploy.py", line 25, in run_bot
nonebot.run(app=f"{module_name}:{app}")
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_init.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\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\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 636, in run_until_complete
self.run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 603, in run_forever
self._run_once()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1906, in _run_once
handle._run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\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\Programs\Python\Python310\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\Programs\Python\Python310\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\Programs\Python\Python310\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
await handler(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\dependencies_init.py", line 108, in call
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\login.py", line 281, in _
UserData.set_cookie(state['getCookie'].cookie,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\data.py", line 435, in set_cookie
userdata = cls.__create_account(userdata, qq, name, phone)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\data.py", line 331, in __create_account
userdata[str(qq)]["accounts"].append(account)
后台报错如下
11-26 20:57:17 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_mystool.exchangePlan) running complete
11-26 20:57:17 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_mystool.exchangePlan) failed.
Traceback (most recent call last):
File "C:\Users\YuYue\Desktop\yuyue_bot\bot.py", line 38, in <module>
nonebot.run(app="__mp_main__:app")
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\__init__.py", line 273, in run
get_driver().run(*args, **kwargs)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\drivers\fastapi.py", line 172, in run
uvicorn.run(
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\main.py", line 569, in run
server.run()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\uvicorn\server.py", line 60, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
self.run_forever()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
self._run_once()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
handle._run()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\message.py", line 142, in _check_matcher
await _run_matcher(Matcher, bot, event, state, stack, dependency_cache)
> File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\message.py", line 188, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\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\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\matcher\matcher.py", line 702, in simple_run
await handler(
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\dependencies\__init__.py", line 108, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\exchangePlan.py", line 329, in _
await get_good_image.finish(MessageSegment.image('file:///'+img_path))
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\matcher\matcher.py", line 476, in finish
await cls.send(message, **kwargs)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\matcher\matcher.py", line 461, in send
return await bot.send(event=event, message=_message, **kwargs)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 220, in send
return await self.__class__.send_handler(self, event, message, **kwargs)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\adapters\onebot\v11\bot.py", line 175, in send
return await bot.send_msg(**params)
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\internal\adapter\bot.py", line 120, in call_api
raise exception
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\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\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\adapters\onebot\v11\adapter.py", line 132, in _call_api
return handle_api_result(
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot\adapters\onebot\v11\utils.py", line 58, in handle_api_result
raise ActionFailed(**result)
nonebot.adapters.onebot.v11.exception.ActionFailed: <ActionFailed data=None, echo='44', msg='SEND_MSG_API_ERROR', retcode=100, status='failed', wording='请参考 go-cqhttp 端输出'>
go-cqhttp报错如下
[2022-11-26 20:57:17] [WARNING]: 转换CQ码 ({"type": "image", "data": {"file": "file:///C:\\Users\\YuYue\\Desktop\\yuyue_bot\\data\\nonebot-plugin-mystool/11-26-ys.jpg", "type": null, "cache": "true", "proxy": "true", "timeout": null}}) 到MiraiGo Element时出现错误: file not found 将忽略本段CQ码.
[2022-11-26 20:57:17] [WARNING]: 好友消息发送失败: 消息为空.
使用的是远程反向websocket连接(挂go-cqhttp的机器和挂nonebot的机器不是同一台,但在同一局域网内)
rc1版本删除了export插件导致无法使用。有没有办法在rc1版本里面装上export插件?
系统时间与网络时间的误差为 -0.04 秒,但商品时间全都是11:00,一个也对不上,想问下是怎么回事?
大佬你好,这个可不可以做一个在env文件一句话就可以设置插件命令前缀的功能,因为命令与别的插件冲突,刚接触这个,改源代码对我来说十分困难。
由于salt之类的数据变化频繁,可增加在线获取User-Agent、salt之类的数据的功能。
CodeFactor found an issue: multiple spaces after ','
It's currently on:
src\nonebot_plugin_mystool\mybMission.py:298
nb run 启动后提示
ImportError: cannot import name 'export' from 'nonebot' (/root/L/N/venv/lib/python3.9/site-packages/nonebot/init.py)
通过了解到新版本nb2移除了export,希望作者能够适配一下
此Issue请开发者随意处置,
https://github.com/MWTJC/zhenxun-plugin-mystool
所有的号签到都失败了
真寻也是基于nonebot的机器人来着
首先非常感谢您可以无私的贡献这么棒的插件(๑•̀ㅂ•́)و✧,但是有个小小的问题是,可否添加一个使用邮箱+密码的登陆方式吗?或者以后会有计划添加这个功能吗
能否出一个屏蔽未查询到相关功能,请重新尝试
即便其他指令正确响应也会有被该插件的未识别所响应到
遇到了签到失败的问题,但是启动时无报错,发送签到命令后日志中提示
虽然在已解决的issues(https://github.com/Ljzd-PRO/nonebot-plugin-mystool/issues/60)中查找到相似问题,但并未查找到具体解决方案
日志如下
12-04 12:38:10 [ERROR] uvicorn | Traceback (most recent call last):
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 671, in lifespan
async with self.lifespan_context(app):
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 566, in __aenter__
await self._router.startup()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\starlette\routing.py", line 648, in startup
await handler()
File "C:\Users\YuYue\AppData\Local\Programs\Python\Python310\lib\site-packages\nonebot_plugin_mystool\exchangePlan.py", line 355, in load_exchange_data
if good_detail.time < NtpTime.time():
TypeError: '<' not supported between instances of 'NoneType' and 'float'
12-04 12:38:10 [ERROR] uvicorn | Application startup failed. Exiting.
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.