aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/math.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cogs/math.py2
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: