diff options
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) |
