Resolved Ending bot?

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

  1. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    1,278
    Likes Received:
    298
    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)?
     
  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

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

Share This Page

Loading...