def send_message(emoji, url):
"""Sends a message to the platform or IP address of the user
Args:
emoji: The emoji that was used
url: The URL to send the user to
"""
# Get the user's platform or IP address
platform = requests.get("https://api.ipinfo.io/json").json()["platform"]
ip_address = requests.get("https://api.ipinfo.io/json").json()["ip"]
# Send the message
message = f"You used the {emoji} emoji! Visit {url} for more information."
requests.post(f"https://{platform}/messages/{ip_address}", data={"message": message})
if __name__ == "__main__":
# Get the emojis that were used
emojis = input("What emojis did you use? ").split()
# Send a message for each emoji
for emoji in emojis:
send_message(emoji, "http://cookiesandmilkdelivery.com")