Advertisement
Guest User

Untitled

a guest
Oct 30th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.74 KB | None | 0 0
  1. import socket
  2.  
  3. authlist = "macbeth"
  4. server = "irc.cryto.net"
  5. name = "macbot"
  6. port = 6667
  7. channel = "#opnewblood"
  8. password = "iammacbotnowshutthefuckup"
  9. irc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  10. irc.connect((server, port))
  11. irc.send("PASS " + password + "\n")
  12. irc.send("NICK " + name + "\n")
  13. irc.send("USER ariayesassistant ariayesassistant ariayesassistant :AriayesBot\n")
  14. irc.send("JOIN " + channel + "\n")
  15. while True:
  16.  
  17.     def message(msg):
  18.         irc.send("PRIVMSG " + channel + " :" + msg + "\n")
  19.  
  20.  
  21.  
  22.     data = irc.recv(1204)
  23.     data = data.strip('\r\n')
  24.     senderusr = data.split(" ")
  25.     senderusr = senderusr[0]
  26.     senderusr = senderusr.split("!")
  27.     senderusr = senderusr[0]
  28.     senderusr = senderusr.strip(":")
  29.  
  30.     print data
  31.     if data.find == "PONG" :
  32.         irc.send("PING")
  33.  
  34.     if data.find("!vpns") and authlist.find(senderusr):
  35.         message("We recomend AirVPN, and IPredator VPN. Neither track, and they are both based in places that have low internet restrictions. AirVPN
  36.  
  37. can be found here: https://airvpn.org/ and IPredator is here: https://www.ipredator.se/")
  38.     #if data.find("!PGP") and authlist.find(senderusr) != -1:
  39.     #    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
  40.  
  41. 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/
  42.  
  43. 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
  44.  
  45. http://pgp.mit.edu/")
  46.  
  47.    #if data.find(":!test") and authlist.find(senderusr) != -1:
  48.    #    message("this is a test...")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement