aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/math.py
diff options
context:
space:
mode:
authorSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
committerSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
commitca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch)
tree4c175ba876ae35d9248dfab33d2a981fe3cfb207 /cogs/math.py
parentchanged printing to proper logging (diff)
downloadsenator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz
senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip
more logging
Diffstat (limited to '')
-rw-r--r--cogs/math.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cogs/math.py b/cogs/math.py
index a837ed9..123d7d0 100644
--- a/cogs/math.py
+++ b/cogs/math.py
@@ -19,6 +19,7 @@ class Math(commands.Cog):
19 try: 19 try:
20 math = subprocess.check_output(f"qalc -e {equation}", shell=True) 20 math = subprocess.check_output(f"qalc -e {equation}", shell=True)
21 await ctx.respond(f"{equation} = {math.decode('utf-8').strip()}") 21 await ctx.respond(f"{equation} = {math.decode('utf-8').strip()}")
22 logger.info(f"Math command executed: {equation}")
22 except Exception as e: 23 except Exception as e:
23 await ctx.respond(e, ephemeral=True) 24 await ctx.respond(e, ephemeral=True)
24 logger.error(f"Error in math command: {e}", exc_info=True) 25 logger.error(f"Error in math command: {e}", exc_info=True)