MiraiForum

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

    在bot关闭进入offline之前,是否有生命周期回调?

    开发交流
    1
    1
    126
    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.
    • Y
      yingxuepeng last edited by

      有个应该很常见的需求,就是在控制台exit或者关闭bot之前,希望进行发送一些文字消息等等的操作。
      现在的BotOfflineEvent发出之后应该就没法继续发消息了。
      请问是否有BotBeforeOfflineEvent这种类似的消息回调存在,并且保证回调内部执行结束才正式offline的接口|event,谢谢~

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