From dbf17783a1748b940c9d12dc125e247ddbe51a8b Mon Sep 17 00:00:00 2001 From: TanguyPcFixe Date: Tue, 15 Jul 2025 18:03:01 +0200 Subject: [PATCH] added logging to console --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 39999e7..d2f3d80 100644 --- a/main.py +++ b/main.py @@ -2,6 +2,7 @@ import discord from discord.ext import commands import requests import json +from datetime import datetime as dt ### reads token files @@ -74,6 +75,7 @@ async def delivery(ctx, response = requests.post(gsheetToken, json.dumps(data), headers={"Content-Type": "application/json"}) if response.status_code == 200: await ctx.followup.send(f"your delivery of {quantity} of {commodity} to a {target} has been added to the sheet!") + print(f"[dt.isoformat(dt.now())]{author} delivery of {quantity} of {commodity} to a {target}") else: await ctx.followup.send(f"Failed to log delivery (HTTP {response.status_code}). Please contact the yellow people if that keeps happening") except Exception as e: