mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update dev_commands.py (#3649)
This commit is contained in:
parent
ecdcc27749
commit
3f7c2e8842
@ -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:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user