MiraiForum

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

    让我看看谁没有补全括号?

    插件发布
    kotlin jvm plugin
    4
    7
    1254
    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.
    • Tackoil
      Tackoil last edited by

      mirai-autocomplete-brackets

      让我看看谁没有补全括号?

      • 仓库地址:https://github.com/Tackoil/mirai-autocomplete-brackets
      • 维护状态:可能也没什么要维护的了

      简介

      mirai-autocomplete-brackets 基于 Mirai Console 插件模板开发,根据群聊内的消息,自动补全其括号,为强迫症患者与编译器提供便利。例如:

      Usr: 我觉得今天挺冷的(

      Bot:)让我看看谁没有补全括号?

      Usr: 我觉得今天挺冷的)

      Bot:让我看看谁没有补全括号?哦,补不上

      Usr: 我觉得今天挺冷的([(){

      Bot:}])让我看看谁没有补全括号?

      受支持的自动补全符号

      左符号 右符号
      ( )
      [ ]
      { }
      ( )
      【 】
      「 」
      『 』
      《 》
      < >
      < >
      〈 〉
      { }
      [ ]
      / \
      ⦅ ⦆

      构建

      本插件完全基于插件模板开发,构建方法详见模板使用文档。how-to-use-plugin-template

      安装

      在 Releases 中下载插件包,放入 Mirai Console plugins 目录中加载。详见 Mirai Console 文档。


      Have Fun!

      1 Reply Last reply Reply Quote 2
      • Orisland
        Orisland 摸鱼 last edited by

        有没有可能随机补出一些段子?
        段子素材可以从论坛或者其他平台上搜集。
        例如:
        感觉不如原(
        bot补全:5毛删)
        也许可以增加补全的趣味性?

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

          能不能补类似(()()(()的

          Tackoil 1 Reply Last reply Reply Quote 0
          • Tackoil
            Tackoil @Orisland last edited by

            @Orisland 确实挺有意思的。但感觉这也好难(可以考虑一下有没有合适的方案 🤔

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

              @RainChan 这个没问题的 hhhhhh 3fa0a312-5d50-49cb-9976-cf164d8f6321-image.png

              1 Reply Last reply Reply Quote 0
              • O
                octju last edited by

                有群投票会触发回复的bugqq_pic_merged_1655868065336.jpg

                Tackoil 1 Reply Last reply Reply Quote 0
                • Tackoil
                  Tackoil @octju last edited by

                  @octju 我也发现这个了,已经合并发布啦。可以更新下试试看。

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