mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-05 17:02:32 -05:00
Update dev_commands.py (#3649)
This commit is contained in:
@@ -119,6 +119,7 @@ class Dev(commands.Cog):
|
|||||||
"discord": discord,
|
"discord": discord,
|
||||||
"commands": commands,
|
"commands": commands,
|
||||||
"_": self._last_result,
|
"_": self._last_result,
|
||||||
|
"__name__": "__main__",
|
||||||
}
|
}
|
||||||
|
|
||||||
code = self.cleanup_code(code)
|
code = self.cleanup_code(code)
|
||||||
@@ -172,6 +173,7 @@ class Dev(commands.Cog):
|
|||||||
"discord": discord,
|
"discord": discord,
|
||||||
"commands": commands,
|
"commands": commands,
|
||||||
"_": self._last_result,
|
"_": self._last_result,
|
||||||
|
"__name__": "__main__",
|
||||||
}
|
}
|
||||||
|
|
||||||
body = self.cleanup_code(body)
|
body = self.cleanup_code(body)
|
||||||
@@ -224,6 +226,7 @@ class Dev(commands.Cog):
|
|||||||
"asyncio": asyncio,
|
"asyncio": asyncio,
|
||||||
"_": None,
|
"_": None,
|
||||||
"__builtins__": __builtins__,
|
"__builtins__": __builtins__,
|
||||||
|
"__name__": "__main__",
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.channel.id in self.sessions:
|
if ctx.channel.id in self.sessions:
|
||||||
|
|||||||
Reference in New Issue
Block a user