Untitled
unknown
plain_text
4 years ago
2.5 kB
11
Indexable
import requests
import json
"""
Read The (README.txt) file before Running The script
-----
Run it And fill the Inputs "its easy!"
"""
def main(data, headers):
bubbleId = create_template(data, headers)
response = create_custom(data, headers, bubbleId)
return response
def create_template(data, headers):
response = requests.post("https://service.narvii.com/api/v1/x106881982/s/chat/chat-bubble/templates/107147e9-05c5-405f-8553-af65d2823457/generate", data=data, headers=headers)
if "OK" in response.text: pass
else: print(response.json()["api:message"])
try:
bubbleId = response.json()["chatBubble"]["bubbleId"]
print(f"Template Done With Id ---> {bubbleId} ", "\n")
return bubbleId
except: print("\n" + response.json()["api:message"])
def create_custom(data, headers, bubbleId: str):
response = requests.post(f"https://service.narvii.com/api/v1/x215736464/s/chat/chat-bubble/{bubbleId}", data=data, headers=headers)
if "OK" not in str(response.text): print(response.text["api:message"])
else: return response.json()
def login(email: str, password: str):
data = json.dumps({
"email": email,
"secret": f"0 {password}",
"deviceID": "0152c45c116746179ab3ad98d811aeedccaae5e75bc131d621b0deb8c4f705d592004f2e4f9c2efa5c",
"clientType": 100,
"v": 2,
"action": "normal"
})
response = requests.post("https://service.narvii.com/api/v1/g/s/auth/login", data=data, headers={
"NDCDEVICEID": "0152c45c116746179ab3ad98d811aeedccaae5e75bc131d621b0deb8c4f705d592004f2e4f9c2efa5c"
})
return f'sid={response.json()["sid"]}'
headers = {
"NDCDEVICEID": "0152c45c116746179ab3ad98d811aeedccaae5e75bc131d621b0deb8c4f705d592004f2e4f9c2efa5c"
}
bubble = None
chose = int(input("""1 - Pinky Fox
2 - S-Amino (Yellow)
3 - Pinky cat
4 - Fall Guys
5 - Among Us
6 - Hody Bubble
7 -devil
# Which Bubble? : """))
cho = int(input("""1 - Login Sid
2 - Login account
# Which Login Type? : """))
if cho == 1: headers["NDCAUTH"] = input("# SID : ")
elif cho == 2: headers["NDCAUTH"] = login(input("email : "), input("password : "))
if chose == 1: bubble = "bubble.zip"
elif chose == 2: bubble = "bubble2.zip"
elif chose == 3: bubble = "bubble3.zip"
elif chose == 4: bubble = "bubble4.zip"
elif chose == 5: bubble = "bubble5.zip"
elif chose == 6: bubble = "bubble6.zip"
elif chose == 7: bubble = "devil.zip"
print("\n\n")
with open(bubble, "rb") as file_data: data = file_data.read()
status = main(data, headers)
print(f"Done Custom Bubble ({status['api:message']})")
Editor is loading...