Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- authlist = "macbeth"
- server = "irc.cryto.net"
- name = "macbot"
- port = 6667
- channel = "#opnewblood"
- password = "iammacbotnowshutthefuckup"
- irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- irc.connect((server, port))
- irc.send("PASS " + password + "\n")
- irc.send("NICK " + name + "\n")
- irc.send("USER ariayesassistant ariayesassistant ariayesassistant :AriayesBot\n")
- irc.send("JOIN " + channel + "\n")
- while True:
- def message(msg):
- irc.send("PRIVMSG " + channel + " :" + msg + "\n")
- data = irc.recv(1204)
- data = data.strip('\r\n')
- senderusr = data.split(" ")
- senderusr = senderusr[0]
- senderusr = senderusr.split("!")
- senderusr = senderusr[0]
- senderusr = senderusr.strip(":")
- print data
- if data.find == "PONG" :
- irc.send("PING")
- if data.find("!vpns") and authlist.find(senderusr):
- message("We recomend AirVPN, and IPredator VPN. Neither track, and they are both based in places that have low internet restrictions. AirVPN
- can be found here: https://airvpn.org/ and IPredator is here: https://www.ipredator.se/")
- #if data.find("!PGP") and authlist.find(senderusr) != -1:
- # message("There are many great PGP programs. Symantic has put their hands in a large amount of the PGP world, and closed the source, but
- there are still programs like GnuPG (aka: GPG) that are open source, and here to help. It is available at http://gnupg.org/download/index.en.html/
- and there are a very many tutorials on the internet all about it. Also, an awesome place to put place your public key publicly, and availably, is
- http://pgp.mit.edu/")
- #if data.find(":!test") and authlist.find(senderusr) != -1:
- # message("this is a test...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement