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:
    787
    Likes Received:
    235
    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,544
    Likes Received:
    1,060
    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:
    787
    Likes Received:
    235
    You are 100% correct sir xD Great idea!
     
  4. Arbiter

    Arbiter Mod Automation

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

Share This Page

Loading...