Git Product home page Git Product logo

Comments (23)

RF-Tar-Railt avatar RF-Tar-Railt commented on September 27, 2024 1

第一,你这个插件完全可以使用 plugin-session 来判断会话等级,而不是强依赖于onebot11适配器的GroupMessageEvent,让你这个插件只能在ob11下使用。我推荐你换用 nonebot-plugin-session

第二,你使用的 on_regex 的正则表达式里面存在泛匹配 (.*),在特殊情况下这会对机器人性能造成很大影响。请换用精准一点的表达式(例如 [\w|-]*)

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

第一,你这个插件完全可以使用 plugin-session 来判断会话等级,而不是强依赖于onebot11适配器的GroupMessageEvent,让你这个插件只能在ob11下使用。我推荐你换用 nonebot-plugin-session

第二,你使用的 on_regex 的正则表达式里面存在泛匹配 (.*),在特殊情况下这会对机器人性能造成很大影响。请换用精准一点的表达式(例如 [\w|-]*)

行,下个版本整x

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

已更新

from nonebot2.

RF-Tar-Railt avatar RF-Tar-Railt commented on September 27, 2024 1

你插件有一部分拿at的,可以去用plugin-alconna的UniMessage去提取At

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

你插件有一部分拿at的,可以去用plugin-alconna的UniMessage去提取At

谢谢,正发愁呢x

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

已更新x

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

supported_adapters 请使用 inherit_supported_adapters 从依赖的插件继承。在使用第三方插件时需要先require,最好把 require 放在插件最初导入的部分。

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

已更新

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

你同时用了alconna和session插件,你应该同时继承他们两个支持的适配器列表,直接添加inherit_supported_adapters的参数即可。

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

已更新

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

等下我漏看了一个,你还要继承localstore的(((

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

等下我漏看了一个,你还要继承localstore的(((

loaclstore不是本地插件数据吗,好像和适配器没关系吧(

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

哪怕他和适配器没关系也需要继承,因为他也是插件

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

哪怕他和适配器没关系也需要继承,因为他也是插件

行,更新了

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

你没有require localstore。。

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

你没有require localstore。。

在plugins_data里,启动时若配置不存在启用 localstore ,若配置存在则不会使用localstore(import和require都不会执行)

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

如果你可能使用一个插件就需要声明依赖,哪怕不使用

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

如果你可能使用一个插件就需要声明依赖,哪怕不使用

但是声明在plugins_data里(

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

你需要在 inherit 前声明依赖

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

你需要在 继承 前声明依赖

哦,懂了,马上去修)

from nonebot2.

cubstaryow avatar cubstaryow commented on September 27, 2024 1

已修复

from nonebot2.

yanyongyu avatar yanyongyu commented on September 27, 2024 1

/update

from nonebot2.

noneflow avatar noneflow commented on September 27, 2024

📃 商店发布检查结果

Plugin: 插件响应鉴权

✅ 所有测试通过,一切准备就绪!

详情
  • ✅ 项目 nonebot-plugin-authrespond 已发布至 PyPI。
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 标签: 黑名单-#e81616, cubplugins-#28a5d1, 权限控制-#c75d59。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.console, nonebot.adapters.discord, nonebot.adapters.dodo, nonebot.adapters.feishu, nonebot.adapters.kaiheila, nonebot.adapters.onebot.v11, nonebot.adapters.onebot.v12, nonebot.adapters.qq, nonebot.adapters.red, nonebot.adapters.satori, nonebot.adapters.telegram。
  • ✅ 插件 加载测试 通过。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。

    ♻️ 评论已更新至最新检查结果

    💪 Powered by NoneFlow

    from nonebot2.

    Related Issues (20)

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.