1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Ending bot?

Discussion in 'Developer Support' started by Serene, May 12, 2016.

  1. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    This is probably a very simple question, but how do I end a bot in my code? Right now I'm using runescape.logout() but the loginhandler logs it back in, and I'm in a loop of logging in and out.

    Also, is this the best place to post questions regarding writing bots? I've probably posted 3 within the past day, and don't want to flood this section (I do my best to search the forums before posting - got me through a bunch so far)?
     
    John5025 likes this.
  2. wolfskull

    wolfskull the Novice

    Joined:
    May 7, 2016
    Messages:
    4
    Likes Received:
    0
    It's literally just stop(), though I'd recommend using pause() instead so that you can add a function to restart your script bot. You might need
    Check the documentation under script bot.framework
     
  3. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    As @wolfskull said, it's just the stop() method in the AbstractScript class.
     

Share This Page

Loading...