MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    在不重启 mirai-console 的情况下更新插件

    开发交流
    1
    1
    421
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cssxsh
      cssxsh last edited by cssxsh

      可以试试我的
      https://github.com/gnuf0rce/debug-helper

      他在1.3.3 时添加了一个新功能指令,
      可以热重载某个插件
      当目录中有同名插件时,将会选择更新的版本加载
      这样就可以做到了热更新插件

      /reload xyz.cssxsh.mirai.plugin.meme-helper

      PS:重载方法比较简单粗暴,对于一些不规范编写的插件可能会无法完全关闭。

      1 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact