Python IRC Bot Help in Questions Posted December 6, 2008 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.
Python IRC Bot Help
in Questions
Posted
Well, in this line:
You are missing a : at the end.
So fixed up is should look like:
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.