diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
| commit | ca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch) | |
| tree | 4c175ba876ae35d9248dfab33d2a981fe3cfb207 /cogs/math.py | |
| parent | changed printing to proper logging (diff) | |
| download | senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip | |
more logging
Diffstat (limited to 'cogs/math.py')
| -rw-r--r-- | cogs/math.py | 1 |
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) |
