MiraiForum

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

    使用CompositeCommand如何更改指令前缀?

    开发交流
    2
    12
    103
    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.
    • M
      ma-1ming last edited by ma-1ming

      看文档好像只有RawCommand才能设置指令前缀?但是我看注释里面有这个东西3ced72d4-4fdb-45fc-9579-0ffffeefec5b-image.png

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

        不能

        1 Reply Last reply Reply Quote 0
        • M
          ma-1ming last edited by

          只能使用rowcommand才能自定义指令前缀么?

          cssxsh 2 Replies Last reply Reply Quote 0
          • cssxsh
            cssxsh @ma-1ming last edited by

            @ma-1ming

            因为 CompositeCommand 的前缀 是 Mirai-Console 统一设置的

            你只可以取消前缀
            或者在 Console 的配置文件里统一更改

            M 1 Reply Last reply Reply Quote 0
            • cssxsh
              cssxsh @ma-1ming last edited by

              @ma-1ming

              另外
              电脑端的表情包转义是可以关掉的

              fa1bc82b-7aa4-422e-bfef-ae4acb27b55a-image.png

              M 1 Reply Last reply Reply Quote 0
              • M
                ma-1ming @cssxsh last edited by

                @cssxsh 我发现有的插件是自定义的指令前缀,例如Hrobot,他所使用的是以 #开头,和正常的指令是不冲突的,但是他是用的是Java语言。

                cssxsh 1 Reply Last reply Reply Quote 0
                • M
                  ma-1ming @cssxsh last edited by

                  @cssxsh 怎么取消当前CompositeCommand的指令前缀?我看注解里面已经移除这个参数了

                  1 Reply Last reply Reply Quote 0
                  • cssxsh
                    cssxsh @ma-1ming last edited by

                    @ma-1ming 在 使用CompositeCommand如何更改指令前缀? 中说:

                    Hrobot

                    因为有插件可能根本没有对接mirai的指令接口

                    M 2 Replies Last reply Reply Quote 0
                    • M
                      ma-1ming @cssxsh last edited by

                      @cssxsh 那如何不通过Console的配置文件取消Composite的前缀呢?

                      1 Reply Last reply Reply Quote 0
                      • M
                        ma-1ming @cssxsh last edited by

                        @cssxsh e09a285a-852b-429f-b4d0-293ea4bce20b-image.png
                        我搜索貌似只有Java的有取消指令前缀的参数,kotlin的没有

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

                          ?
                          你重载他不就好了嘛

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            ma-1ming @cssxsh last edited by

                            @cssxsh 哦,卧槽,我制杖了,不好意思,kotlin不太熟悉

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