Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求调整一下依赖 #52

Open
seven-XINZ opened this issue Sep 9, 2024 · 2 comments
Open

求调整一下依赖 #52

seven-XINZ opened this issue Sep 9, 2024 · 2 comments

Comments

@seven-XINZ
Copy link

Screenshot_2024-09-09-09-43-18-748_com microsoft emmx
Screenshot_2024-09-09-09-36-34-375_com microsoft emmx
Screenshot_2024-09-09-09-37-51-783_com microsoft emmx
插件依赖是否能调整一下 然后就是截图好像不稳定 一会儿行一会儿不行

@seven-XINZ
Copy link
Author

seven-XINZ commented Sep 9, 2024

补充
1.把依赖改成inject导入puppeteer,而不是指定koishi-plugin-puppeteer
2. 取消启动指令 加个中间件触发模式,可以让用户自定义正则规则也行 直接正则匹配 完整长图使用 / -f 会不会更好一点 求大佬采纳
3. 渲染速度太慢了 然后时不时不能获取截图 提示不能打开
4. 我不懂代码 大佬勿怪
5. /^(https?://[^\s/$.?#].[^\s].[a-z]{2,}(:\d+)?(/[^\s])?)$/,
async (e) => {
const match = e.msg.match(/^(https?://[^\s/$.?#].[^\s].[a-z]{2,}(:\d+)?(/[^\s])?)$/)
image

@DGCK81LNN
Copy link

DGCK81LNN commented Sep 10, 2024

  1. “必需依赖”应当不会影响插件加载,仅作提示;“必需服务”才会影响。
  2. 中间件触发请使用其他插件处理,如 dialogue
  3. 检查网络问题,适当延长 shot 插件配置中的超时时间。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants