0% found this document useful (0 votes)
4 views2 pages

Vo Ke Ndevbv

The document contains a Python script for a lobby hopping bot that interacts with a PlayFab API using a Steam ticket. It sends messages to a Discord webhook when it finds active lobbies based on predefined codes and regions. The script continuously checks for lobbies and reports findings until stopped.

Uploaded by

digonico490
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Vo Ke Ndevbv

The document contains a Python script for a lobby hopping bot that interacts with a PlayFab API using a Steam ticket. It sends messages to a Discord webhook when it finds active lobbies based on predefined codes and regions. The script continuously checks for lobbies and reports findings until stopped.

Uploaded by

digonico490
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

import requests

import time

TITLE_ID = "63FDD"
STEAM_TICKET =
"14000000d468bf7ecce20b49a662744f01001001e51b7a67180000000100000002000000296e15db43
61997a7652740006000000b20000003200000004000000a662744f01001001ce6517009bd78446bd01a
8c000000000603d7267e0ec8d6701005242080000000000d1e65112a136e739e38a3c2d0a20abd5c6fa
7b3502834dbcacd9056b037792463185725d48c6fc0f2304b177fe7d057dbc0f3eb0888d89082b2fa29
1bf4e3f0007e0f60fb1fbe26d3acf5456e6ad4f1af29b68abdc9cdb88a055193c36e5ba3f2d4aead5da
9cb50f923b63210b32ee8599a4c7ab963016ca0b8ed0acca455268"
WEBHOOK_URL =
"https://discord.com/api/webhooks/1322306608939929640/AKHhMK5BbmjuU72tPkSE2hWt7rK4r
PpIXcY20BA7vPn2C0cRbaMO_e22MIK6ngMdbd2Y"
API_BASE_URL = f"https://{TITLE_ID}.playfabapi.com/Client/"
LOBBY_REGIONS = ["US", "USW", "EU"]
LOBBY_CODES = ["JMAN", "K9", "PARTYMONKEY", "BOETHIA", "CHIVI"]

def send_webhook_message(message):
payload = {"content": message}
response = requests.post(WEBHOOK_URL, json=payload)
if response.status_code != 204:
print(f"Webhook Error: {response.status_code}, {response.text}")

def get_session_ticket():
payload = {
"SteamTicket": STEAM_TICKET,
"CreateAccount": True,
"TitleId": TITLE_ID
}
response = requests.post(f"{API_BASE_URL}LoginWithSteam", json=payload)
if response.status_code == 200:
return response.json().get("data", {}).get("SessionTicket")
return None

def check_lobby(session_ticket, code, region):


headers = {"X-Authorization": session_ticket}
payload = {"SharedGroupId": f"{code}{region}"}
response = requests.post(f"{API_BASE_URL}GetSharedGroupData", json=payload,
headers=headers)
if response.status_code == 200:
data = response.json()
members = data.get("data", {}).get("Members", [])
if members:
send_webhook_message(f"Lobby Found: {code}{region}\nMembers:
{members}")

def lobby_hop():
session_ticket = get_session_ticket()
if not session_ticket:
send_webhook_message("Failed to get session ticket.")
return
send_webhook_message("Lobby Hopping Started")
while True:
for code in LOBBY_CODES:
for region in LOBBY_REGIONS:
check_lobby(session_ticket, code, region)
time.sleep(1)
time.sleep(10)
if __name__ == "__main__":
lobby_hop()

You might also like