Created
July 2, 2020 14:22
-
-
Save xm4r1us/b8978d264e081a104748c7cd3e3b1892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
import requests | |
import time | |
while True: | |
letters = string.digits + string.uppercase | |
randomString1 = ''.join(random.choice(letters) for i in range(5)) | |
randomString2 = randomString1 +''.join(random.choice(letters) for i in range(5)) | |
randomString = randomString2 +''.join(random.choice(letters) for i in range(5)) | |
nitroscode = "https://discordapp.com/api/v6/entitlements/gift-codes/" + randomString + "?with_application=false&with_subscription_plan=false&country_code=US" | |
r = requests.get(nitroscode, ) | |
if "Unknown Gift Code" in r.text: | |
print("Dont Work Code " + randomString ) | |
time.sleep(2) | |
elif "You are being rate limited" in r.text: | |
print("Rate Limited Waiting") | |
time.sleep(15) #15 saniye bekliyor | |
else: | |
print("Work Code " + randomString) | |
time.sleep(2) | |
exit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment