Jump to content

Command to close client after bot logoff?


Recommended Posts

Posted (edited)
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
Posted
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
Posted
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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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