Posted
import random, string
amount = int(input('Amount of nitro codes to generate: '))
value = 1
while value <= amount:
code = "https://discord.gift/" + ('').join(random.choices(string.ascii_letters + string.digits, k=16))
f = open('Codes.txt', "a+")
f.write(f'{code}\n')
f.close()
print(f'[GENERATED] {code}')
value += 1
nitro B)Replied
What is this
Cancel
Post
Replied
@59853try it in repl or something
Cancel
Post
Replied
@Moon I am assuming that this is an Discord Nitro Gen because of the 'discord.gift/'.
Cancel
Post
Learning C++, C#, JavaScript Developer
I develop random stuff
Discord: Unidentified#1091
Replied
There's probably a 1/1000 chance of getting a real working nitro code but its cool
Cancel
Post
Replied
timegoesbyfast covered this already. Also i made a little modification to your script, it checks forever until it finds an code that works and i added some function to let you know that an working code has been generated (lmao just run it)
import requests
import random, string
import os
import winsound
value = "ok"
while value == "ok":
code = "https://discord.gift/" + ('').join(random.choices(string.ascii_letters + string.digits, k=16))
url = f"https://discordapp.com/api/v6/entitlements/gift-codes{code}?with_application=false&with_subscription_plan=true"
response = requests.get(url) # Get the responce from the url
f = open('Codes.txt', "a+")
f.write(f'{code}\n')
f.close()
print(f'[GENERATED] {code}')
if response.status_code == 404:
print(f"Dude we finna found a working code {code}")
frequency = 2500 # Set Frequency To 2500 Hertz
duration = 999999 # Set Duration To 1000 ms == 1 second
winsound.Beep(frequency, duration)
winsound.Beep(frequency, duration)
winsound.Beep(frequency, duration)
winsound.Beep(frequency, duration)
exit()Cancel
Post
Learning C++, C#, JavaScript Developer
I develop random stuff
Discord: Unidentified#1091
Replied
@65942coolio thx
Cancel
Post
Added
@65942coolio thx
Cancel
Post
Learning C++, C#, JavaScript Developer
I develop random stuff
Discord: Unidentified#1091
Replied
Pretty cool
Cancel
Post
Thanks to Monkey_D_Luffy for the rep I will always remember you:)
NEW VIDEO ON MY CHANNEL:https://youtu.be/U2KzKW2k3gw
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post