Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from socket import *
- server = "irc.azzura.org" # nome del server a cui ci connetteremo
- chan = "#perl" # nome del chan
- porta = 6669 # porta
- nickname = "HalfWolf" # tuo nick
- password = "fatti_i_cazzi_tuoi"
- botname = "ProvaBot" # nickname del bot
- user = "USER " , nickname , " \r\n"
- bot = "NICK " , botname , " \r\n"
- iden = "privmsg nickserv IDENTIFY " , password , " \r\n"
- chane = "JOIN ", chan , " \r\n"
- client = socket(AF_INET, SOCK_STREAM)
- client.connect((gethostbyname(server), porta))
- client.send(user)
- client.send(bot)
- client.send(iden)
- client.send(chane)
- client.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement