@@ -0,0 +1,1452 @@
+import sys%0Aimport grabber%0Aimport urllib2%0Aimport serial%0Aimport threading%0A%0Aclass message:%0A    def __init__(self, defaultUrl, robotId):%0A        self.url = defaultUrl + robotId + '.html'%0A        print(self.url)%0A        self.string = ''%0A%0A    def request(self):%0A        req = urllib2.Request(self.url)%0A        response =  urllib2.urlopen(req)%0A        html = response.read()%0A        html=html.strip()%0A        html=html.rstrip()%0A        html=html.lstrip()%0A        self.string = str(html)%0A        return self.string%0A%0Aclass robot:%0A    def send(self, message):%0A        if message == 'Forward':%0A            grabber.forward()%0A        elif message == 'Backward':%0A            grabber.backward()%0A        elif message == 'Right':%0A            grabber.right()%0A        elif message == 'Left':%0A            grabber.left()%0A        else:%0A            print('Unknown message: ' + message)%0A%0A%0Aclass livebot:     %0A    def __init__(self, robotId):%0A        self.msg = message('http://livebots.cc/Robot/Message/', robotId)%0A        self.bot = robot()%0A        self.lastMessage = ''%0A        self.loop()%0A        %0A    def loop(self):%0A        threading.Timer(1, self.loop).start()%0A        message = self.msg.request()%0A        if message != self.lastMessage:%0A            print(message)%0A            try:%0A                self.bot.send(message.split()%5B0%5D)%0A            except:%0A                print %22Unexpected error:%22, sys.exc_info()%0A                pass%0A            self.lastMessage = message%0A

Create livebots.py