diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 18:08:59 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 18:08:59 +0200 |
| commit | 936ffa8b06f339de37f6246e45858bbd215cd204 (patch) | |
| tree | 1abae237d91f7755e3d53b06fbf9e07bd6890158 /cogs/math.py | |
| parent | more logs!?!?! (diff) | |
| download | senator-sperma-936ffa8b06f339de37f6246e45858bbd215cd204.tar.gz senator-sperma-936ffa8b06f339de37f6246e45858bbd215cd204.zip | |
more logs!?!?! and fixes
Diffstat (limited to '')
| -rw-r--r-- | cogs/math.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/math.py b/cogs/math.py index 123d7d0..8a2644c 100644 --- a/cogs/math.py +++ b/cogs/math.py | |||
| @@ -17,7 +17,7 @@ class Math(commands.Cog): | |||
| 17 | ) | 17 | ) |
| 18 | async def math(self, ctx: ApplicationContext, equation: str): | 18 | async def math(self, ctx: ApplicationContext, equation: str): |
| 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 | logger.info(f"Math command executed: {equation}") |
| 23 | except Exception as e: | 23 | except Exception as e: |
