Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- import random
- import time
- def gencode():
- count = 0
- code = ""
- while count < 16:
- code = code+random.choice(string.ascii_letters + string.digits)
- count = count+1
- return code
- # Main function
- def main():
- f = open('nitro_codes.txt', 'a')
- read = open('nitro_codes.txt', 'r')
- discord_url = "https://discordapp.com/gifts/"
- while True:
- line = discord_url + gencode();
- if line not in read.read():
- f.write(line + "\n")
- print (line)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement