aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Janine vN <[email protected]>2021-04-12 18:37:01 -0400
committerGravatar Janine vN <[email protected]>2021-04-12 18:37:01 -0400
commitc9a3cdf1e71525c307ee3385a375724a861a7b74 (patch)
tree0d4c4887e249c88b2e53478427b33242b369244f
parentAdd constants for common string filenames (diff)
Remove check for `exit` to reset context
This commit removes the `exit` check if someone were to use this: `.int e exit` to clear the context. The check would prevent `.int e exit()` from restarting the bot container. With the `.int reset` and `.int exit` ability to clear the context the check for `exit` to clear the context isn't necessary.
-rw-r--r--bot/exts/internal_eval/_internal_eval.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py
index a62a7899..757a2a1e 100644
--- a/bot/exts/internal_eval/_internal_eval.py
+++ b/bot/exts/internal_eval/_internal_eval.py
@@ -112,11 +112,6 @@ class InternalEval(commands.Cog):
async def _eval(self, ctx: commands.Context, code: str) -> None:
"""Evaluate the `code` in the current evaluation context."""
- if code.startswith("exit"):
- self.locals = {}
- await ctx.send("The evaluation context was reset.")
- return
-
context_vars = {
"message": ctx.message,
"author": ctx.message.author,