MiraiForum

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

    功能如何分开文件来写

    开发交流
    2
    3
    50
    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.
    • D
      dfmubai last edited by

      fc2730db-7b34-444a-b0fe-9037835cd689-image.png

      想让不同功能都重新新建一个类来写 我该如何操作 我该看哪个文档

      1 Reply Last reply Reply Quote 0
      • D
        diyigemt last edited by

        两种方法:
        1.https://docs.mirai.mamoe.net/Events.html#使用-eventhandler-注解标注的方法监听事件
        2.https://docs.mirai.mamoe.net/console/Commands.html#使用-rawcommand

        1 Reply Last reply Reply Quote 0
        • D
          dfmubai last edited by

          谢谢 我去看看

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