From 42281010c5b8e8e93fbfb5d9edd5aa158c44c98a Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Tue, 31 Dec 2024 18:10:28 -0500 Subject: [PATCH] fix admin eval command --- nomen/main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nomen/main.py b/nomen/main.py index 548daa1..38fc884 100644 --- a/nomen/main.py +++ b/nomen/main.py @@ -198,13 +198,13 @@ async def sql(ctx, *, query): @bot.command(hidden=True, name="eval") @commands.is_owner() -async def admin_eval(self, ctx, *, body: str): +async def admin_eval(ctx, *, body: str): env = { - "bot": self.bot, + "bot": ctx.bot, "ctx": ctx, - "channel": ctx.message.channel, - "author": ctx.message.author, - "guild": ctx.message.guild, + "channel": ctx.channel, + "author": ctx.author, + "guild": ctx.guild, "message": ctx.message, }