Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. filename = "".join(random.choice(string.ascii_letters + string.digits) for i in range(6))
  2. codes = open(filename + ".txt","w+")
  3. for _ in range(request.form.get("codes", type=int)):
  4.     codes.write("https://discord.gift/" + "".join(random.choice(string.ascii_letters + string.digits) for i in range(16)) + "\n")
  5. codes.close()
  6. return redirect("https://gen--tricksyz.repl.co/" + filename + ".txt")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement