fix admin eval command

This commit is contained in:
Infinidoge 2024-12-31 18:10:28 -05:00
parent d868427fc6
commit 42281010c5
Signed by: Infinidoge
SSH key fingerprint: SHA256:GT2StvPQMMfFHyiiFJymQxfTG/z6EWLJ6NWItf5K5sA

View file

@ -198,13 +198,13 @@ async def sql(ctx, *, query):
@bot.command(hidden=True, name="eval") @bot.command(hidden=True, name="eval")
@commands.is_owner() @commands.is_owner()
async def admin_eval(self, ctx, *, body: str): async def admin_eval(ctx, *, body: str):
env = { env = {
"bot": self.bot, "bot": ctx.bot,
"ctx": ctx, "ctx": ctx,
"channel": ctx.message.channel, "channel": ctx.channel,
"author": ctx.message.author, "author": ctx.author,
"guild": ctx.message.guild, "guild": ctx.guild,
"message": ctx.message, "message": ctx.message,
} }