Skip to content

Commit

Permalink
readd missing dev env entries
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed Feb 17, 2025
1 parent f5ae86c commit ff09da0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ballsdex/core/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,14 @@ def sanitize_output(ctx: commands.Context, input_: str) -> str:
token = ctx.bot.http.token
return re.sub(re.escape(token), "[EXPUNGED]", input_, re.I)

def get_environment(self, ctx: commands.Context | None) -> dict:
def get_environment(self, ctx: commands.Context) -> dict:
env = {
"bot": self.bot,
"ctx": ctx,
"channel": ctx.channel,
"author": ctx.author,
"guild": ctx.guild,
"message": ctx.message,
"asyncio": asyncio,
"aiohttp": aiohttp,
"discord": discord,
Expand Down

0 comments on commit ff09da0

Please sign in to comment.