Enviado em 05/03/2017 - 18:41h
Já vou ser curto:
#_*_coding: utf-8_*_
import socket
while 1:
host = "chat.freenode.net"
port = 6667
nick = "perito"
password = "perito"
channel = "#skynet"
skt = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
addr = (host, port)
skt.connect(addr)
skt.send(nick.encode("utf-8"))
skt.send(password.encode("utf-8"))
skt.send(channel.encode("utf-8"))
dd = skt.recv(2048)
dd.decode("utf-8")
print(dd)