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

Get bot's corresponding PID

Discussion in 'Developer Support' started by proxi, Apr 8, 2016.

  1. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    2,223
    Likes Received:
    501
    I'm not sure if there is a way to already do this, but for debugging purposes it'd be nice if we could print out the PID of the client the bot is working on.

    If it's not already in there, I think that'd be cool xD
     
  2. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    You're just as well off assigning a random number at startup, showing it in the UI, and using that for identifications in your debugging.
     
    proxi likes this.
  3. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    2,223
    Likes Received:
    501
    You are 100% correct sir xD Great idea!
     
  4. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,938
    Likes Received:
    1,266
    Also if you use separate accounts you can just use the hashCode of the username. :p
     
    proxi likes this.

Share This Page

Loading...