From a65137307b77ba97fab5d654bb0ed69ff972e02a Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 26 Apr 2023 17:04:36 +1000 Subject: [PATCH] fix self --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index ca198ea..aa65f6e 100755 --- a/bot.py +++ b/bot.py @@ -75,12 +75,12 @@ class BotClient(discord.Client): command = message.content.split(" ")[0] match command: case "%calc": - reply = await _calculate(command[1:]) + reply = await self._calculate(command[1:]) await message.reply(content=reply) case _: _log.info(f"Unrecognised command {command}") - async def _calculate(args: list[str]) -> str: + async def _calculate(self, args: list[str]) -> str: proc = sp.run(["node", "calc_main.js", "--"] + args) msg = proc.stdout return msg.strip()