diff --git a/modules/calc/__init__.py b/modules/calc/__init__.py index 46b86c16fc..cc1264622e 100644 --- a/modules/calc/__init__.py +++ b/modules/calc/__init__.py @@ -15,8 +15,8 @@ @c.command(' {calc.help}') -async def _(msg: Bot.MessageSession): - expr = msg.as_display().split(' ', 1)[1] +async def _(msg: Bot.MessageSession, math_expression: str): + expr = math_expression.replace("\\", "") start = time.perf_counter_ns() res = await spawn_subprocess('/calc.py', expr, msg) Logger.warning(res)