kaguya233qwq / nonebot_plugin_sky Goto Github PK
View Code? Open in Web Editor NEWnonebot2的光遇每日任务及活动查询插件
License: GNU General Public License v3.0
nonebot2的光遇每日任务及活动查询插件
License: GNU General Public License v3.0
在發送群中發送光遇每日攻略並不會有任何消息
大佬为什么今日国际服,老是会提示今日数据未更新呢?
日志如下:
03-28 13:21:20 [SUCCESS] nonebot | OneBot V11 1759585224 | [message.group.normal]: Message 848010765 from 2478314183@[群:822920416] '光遇菜单'
03-28 13:21:20 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_sky, lineno=32)
03-28 13:21:20 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_sky, lineno=32) running complete
03-28 13:21:20 [ERROR] nonebot | Running Matcher(type='message', module=nonebot_plugin_sky, lineno=32) failed.
Traceback (most recent call last):
File "/data/nb/bot.py", line 18, in <module>
nonebot.run()
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/__init__.py", line 333, in run
get_driver().run(*args, **kwargs)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/drivers/fastapi.py", line 185, in run
uvicorn.run(
File "/data/nb/.venv/lib/python3.10/site-packages/uvicorn/main.py", line 587, in run
server.run()
File "/data/nb/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 62, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 842, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 817, in simple_run
await handler(
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/dependencies/__init__.py", line 106, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot_plugin_sky/__init__.py", line 97, in menu_handle
await Menu.send(
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/internal/matcher/matcher.py", line 558, in send
return await bot.send(event=event, message=_message, **kwargs)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/bot.py", line 228, in send
return await self.__class__.send_handler(self, event, message, **kwargs)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/bot.py", line 181, in send
return await bot.send_msg(**params)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/internal/adapter/bot.py", line 122, in call_api
raise exception
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/internal/adapter/bot.py", line 97, in call_api
result = await self.adapter._call_api(self, api, **data)
File "/data/nb/.venv/lib/python3.10/site-packages/nonebot/adapters/onebot/v11/adapter.py", line 147, in _call_api
return handle_api_result(await self._result_store.fetch(seq, timeout))
File "/data/nb/.venv/lib/python3.10/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=200, data=None, echo='9')
如上,破碎季结束后时间很乱,想知道今天是几点场,如果可以的话最好可以在开始的时候发通知。
考不考虑适配一下频道(?)
有些消息太长了,要是能加个true/false让我们自己配置就好了(
用nonebot2的ntchat适配器试了下:
11-17 21:40:59 [SUCCESS] nonebot | ntchat wxid_*** | [MT_RECV_TEXT_MSG]: Message 4869138679324892334 from wxi
d_@[群:@ChatRoom]: 光遇今日攻略
11-17 21:40:59 [DEBUG] nonebot | Checking for matchers in priority 1...
11-17 21:40:59 [INFO] nonebot | Event will be handled by Matcher(type='message', module=nonebot_plugin_sky)
11-17 21:40:59 [DEBUG] nonebot | Running Matcher(type='message', module=nonebot_plugin_sky)
11-17 21:40:59 [DEBUG] nonebot | Running handler Dependent(call=)
11-17 21:40:59 [DEBUG] nonebot | Handler Dependent(call=) skipped
11-17 21:40:59 [INFO] nonebot | Matcher(type='message', module=nonebot_plugin_sky) running complete
能否基于Yunzai-Bot写一个复刻类的单JS插件
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.