MiraiForum

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

    mirai有没有提供取消插件加载的方法

    开发交流
    2
    4
    306
    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.
    • Nambers
      Nambers 摸鱼 last edited by

      如题,如果在插件onEnable中出现了一些配置错误要中断插件的加载,除了抛出异常和不继续注册监听外有没有方法终止?

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

        无

        请增添发帖内容,不能少于 8 个字符。

        Nambers 2 Replies Last reply Reply Quote 0
        • Nambers
          Nambers 摸鱼 @Karlatemp last edited by

          @karlatemp 在 mirai有没有提供取消插件加载的方法 中说:

          无

          请增添发帖内容,不能少于 8 个字符。

          ok 那能加功能吗 https://github.com/mamoe/mirai/issues/1127
          提交了

          Nambers created this issue in mamoe/mirai

          closed onEnable中中断跳过当前插件加载 #1816

          1 Reply Last reply Reply Quote 0
          • Nambers
            Nambers 摸鱼 @Karlatemp last edited by

            @karlatemp 在 mirai有没有提供取消插件加载的方法 中说:

            无

            请增添发帖内容,不能少于 8 个字符。

            此外,
            如果快速发送信息好像会报错

            kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 5000 ms
            

            就bot.getFriend().sendMsg()这个方法
            可能是我程序设计问题还是mirai?

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