Skip to content

Commit

Permalink
fix #721
Browse files Browse the repository at this point in the history
  • Loading branch information
DoroWolf committed Aug 1, 2024
1 parent 589ce9c commit e099e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/calc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@


@c.command('<math_expression> {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)
Expand Down

0 comments on commit e099e4e

Please sign in to comment.