blob: 04f663b73871b699928220cd2eeb0d9dc6aadad8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class pong:
def __init__(self):
self = []
def getAction(self, data, users):
try:
if data.find ( 'PING' ) != -1:
print 'Ponged ' + data.split()[1]
return 'PONG ' + data.split()[1]
except:
return False
|