I am building a simple MinecraftClassic bot in Python. Right now I even can't login. Here is my code so far:
import socket
s = socket.socket()
KEY = "serverkey"
HOST = "68.53.14.13"
PORT = 25566
s.connect((HOST, PORT))
print 'connected'
START_LOGIN = s.sendall(chr(0x00)) # Start login packet
PROTOCOL = s.sendall(chr(0x07)) # Send protocol version
USERNAME = s.sendall("Vik2015") # Username
VERKEY = s.sendall(KEY) # Verification key
UNUSED = "" # Unused byte
print 'sentall'
print s.recv(4096)
s.close()
But when I execute it, my client just sticks forever. It doesn't get any responses from the server. What I am doing wrong? I'd really like to write this bot.