added logger for bot to discord

This commit is contained in:
TanguyPcFixe 2026-07-01 21:43:03 +02:00
parent f175fa90ba
commit d23b49a77e

View File

@ -404,6 +404,9 @@ async def setCarrierState(ctx, carrier, state):
if response == 200:
await ctx.followup.send(f"The carrier {carrier} has been set to {state}")
print(f"{author} set {carrier} state to {state}")
channel = bot.get_channel(1521963883018063882)
await channel.send(f"{author} set {carrier} state to {state}")
else:
await ctx.followup.send(f"i fucked up ")
except Exception as e: