MiraiForum

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

    使用mirai-core开发的项目能同时使用现成的插件吗

    开发交流
    4
    5
    189
    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.
    • R
      RtekiX last edited by

      如题
      现在已经用mirai-core写了一个有几个基本功能的bot,用idea打包成jar在服务器上运行
      但是还想使用一些现成的插件,请问有可行的办法吗
      还是说插件模式就只能在mirai-console下运行

      1 Reply Last reply Reply Quote 0
      • RainChan
        RainChan 摸鱼 last edited by

        插件模式只能在console运行

        R 1 Reply Last reply Reply Quote 0
        • R
          RtekiX @RainChan last edited by

          @rainchan 了解了,谢谢

          1 Reply Last reply Reply Quote 0
          • lc6a
            lc6a last edited by

            能!不过不是特别建议,我目前做过这种项目,实现方式是在你的项目中添加mirai-console相关依赖并手动启动mirai-console或者手动加载插件。

            Him188 1 Reply Last reply Reply Quote 1
            • Him188
              Him188 @lc6a last edited by

              @lc6a 是正解。 Mirai Console 可以内嵌到项目启动来支持加载插件。当然这样就推荐把自己的功能也写成插件而统一用 Mirai Console 加载。

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