replaced reconnecting_socket with listener
New bot with Twisted