Jump to content

Command to close client after bot logoff?


gptaqbc

Recommended Posts

10 minutes ago, Butters said:

Could do 


System.exit(0);

If you have a custom login handler.

If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible

Beautiful, thank you for this, I was looking for something like that as well.

Edited by w0000t
Link to comment
Share on other sites

8 hours ago, inababila said:

Exactly what @Butters said. @Explv has a wonderful login handler here 

 

Maybe I misunderstood what you exactly need.

If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye.

If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities.

  • Like 2
Link to comment
Share on other sites

8 hours ago, Butters said:

Maybe I misunderstood what you exactly need.

If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye.

If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities.

Yep, that's exactly what I need! I'm going to try it right now.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...