Jump to content

Micro

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by Micro

  1. Well, in this line:

    if(line.find('PING') #If server pings then pongs

    You are missing a : at the end.

    So fixed up is should look like:

    if(line.find('PING'): #If server pings then pongs
        s.send('PONG '+line[1]+' :'+ot+'n')
        print('PINGED!')

    I still have no idea where you are getting the ot variable from, I only see it in the syscmd function (which returns 0)?

    That should fix it, you got it right on the second if in the while loop though.

×
×
  • Create New...