We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8c9909 commit e64615fCopy full SHA for e64615f
bot/exts/smart_eval/_smart_eval_rules.py
@@ -47,6 +47,14 @@
47
r"(?m:^\s*import\s+this\s*$)": [ # Detect use of "import this"
48
f"```\n{ZEN_OF_PYTHON}```",
49
],
50
+ r"\b(?P<content>exec|eval)\b": [ # Detect use of exec and eval
51
+ (
52
+ "Sorry, but running the code inside your `{}` call would require another me,"
53
+ " and I don't think I can handle that."
54
+ ),
55
+ "I spy with my little eye... something sketchy like `{}`.",
56
+ ""
57
+ ],
58
}
59
60
DEFAULT_RESPONSES = [
0 commit comments