From 2c8ff7e8d4f34c8135a2e2d01c95b34e7955f05e Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sun, 8 Sep 2024 02:27:51 +0100 Subject: [PATCH] omg --- app/modules/evaluation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/evaluation.py b/app/modules/evaluation.py index d462e9d..60e5dc9 100644 --- a/app/modules/evaluation.py +++ b/app/modules/evaluation.py @@ -200,7 +200,7 @@ class EvalModule(niobot.Module): @niobot.command() @niobot.is_owner() - async def runas(self, ctx: niobot.Context, user: str, command: str, *args): + async def runas(self, ctx: niobot.Context, user: str, command: str, *args: str): """Run a command as another user.""" if args and args[0] == "%null%": args = tuple() @@ -210,7 +210,7 @@ class EvalModule(niobot.Module): if args: event.body += " " + " ".join(args) try: - result = await self.bot.process_message(event) + result = await self.bot.process_message(ctx.room, event) await ctx.respond(f"Result of runas: `{result!r}`") except Exception as e: await ctx.respond(f"Error in runas process: `{e!r}`")