MiraiForum

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

    Java如何实现定时向全部群或者某个群发送消息

    开发交流
    2
    2
    277
    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.
    • G
      Git-shi-ui last edited by

      打算利用xxl-job实现定时任务,但是mirai怎么发送到消息到某个群或者全部群呢

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

        for(Bot b: Bot.getInstances()){
        for(Contact g : b.getGroups()){
        g.sendMessage("");
        }
        }

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