Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import string
  2. import random
  3. import time
  4. def gencode():
  5. count = 0
  6. code = ""
  7. while count < 16:
  8. code = code+random.choice(string.ascii_letters + string.digits)
  9. count = count+1
  10. return code
  11.  
  12. # Main function
  13. def main():
  14. f = open('nitro_codes.txt', 'a')
  15. read = open('nitro_codes.txt', 'r')
  16. discord_url = "https://discordapp.com/gifts/"
  17. while True:
  18. line = discord_url + gencode();
  19. if line not in read.read():
  20. f.write(line + "\n")
  21. print (line)
  22.  
  23.  
  24.  
  25. if __name__ == '__main__':
  26. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement