Update autocraft9x9.py

nodisc
This commit is contained in:
alexpolo1
2024-11-08 08:08:15 +01:00
committed by GitHub
parent a76e0ca8da
commit c94413a396

View File

@@ -8,7 +8,7 @@ def log_and_print(message):
# Add logging here if needed
def post_to_discord(message):
webhook_url = 'https://discord.com/api/webhooks/1171735460729606145/Fyls4_uD7it29TNo7LktQFynb3k1K-BHLx9Y4WqzDK806o1_bVTNz94JNc996kDi-jE6'
webhook_url = 'https://discord.com/api/webhooks/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
data = {"content": message}
response = requests.post(webhook_url, json=data)
log_and_print(f"Posted to Discord: {message}")
@@ -58,4 +58,4 @@ focus_minecraft_window()
shift_click_inventory_slots()
final_message = f"Crafted 256 {crafted_item}(s)."
log_and_print(final_message)
post_to_discord(final_message)
post_to_discord(final_message)