MiraiForum

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

    Solved 如何实现支持上下文关联的命令?

    开发交流
    3
    5
    161
    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.
    • AdorableParker
      AdorableParker last edited by

      根据文档说明,似乎是使用CommandArgumentContext来进行支持上下文的响应
      但是没看懂怎么用。

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

        需求类似于:

        user:查询天气
        bot:请提供地区
        user:上海
        bot:今日上海天气为...
        
        cssxsh 1 Reply Last reply Reply Quote 0
        • cssxsh
          cssxsh @AdorableParker last edited by

          @adorableparker
          手动实现
          设置一个一次性的监听器,监听需要的内容

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

            真的就得自己捏一个吗![0_1638284092718_U$[XH$%O9$OH3BEX~31XZ8.jpg](正在上传 100%)

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

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • Topic has been marked as solved  AdorableParker AdorableParker 
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact