Code Pal Result
Code Pal Result
import json
class GorillaTagPlayerTracker:
"""
Class to track Gorilla Tag players and send their codes to a Discord webhook.
Attributes:
-
webhook_url:https://discord.com/channels/1155884798896787596/1265343146049540127
The URL of the Discord webhook to send the player codes to.
"""
Parameters:
- webhook_url: str
The URL of the Discord webhook to send the player codes to.
"""
self.webhook_url = webhook_url
Parameters:
- playfab_id:FB5FCEBC4A0E0387
The PlayFab ID of the player to track.
Returns:
- bool:
True if the tracking and sending of codes is successful, False
otherwise.
"""
# Make a request to the Gorilla Tag API to get the player's codes
api_url = f"https://api.gorillatagstats.com/player/{playfab_id}/codes"
response = requests.get(api_url)