Update trader.py
remove
This commit is contained in:
@@ -13,7 +13,7 @@ def log_and_print(message):
|
||||
logging.info(message)
|
||||
|
||||
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/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
||||
data = {"content": message}
|
||||
response = requests.post(webhook_url, json=data)
|
||||
log_and_print(f"Posted to Discord: {message}")
|
||||
@@ -139,4 +139,4 @@ focus_minecraft_window()
|
||||
for _ in range(40): # Number of trades to perform
|
||||
result = trade_actions()
|
||||
if not result:
|
||||
break # Stop the script if trade window is not detected
|
||||
break # Stop the script if trade window is not detected
|
||||
|
||||
Reference in New Issue
Block a user