Skip to content

Commit 3355139

Browse files
authored
Smart eval eso-py link + extra condition (#144)
1 parent 9509ea2 commit 3355139

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/exts/smart_eval/_smart_eval_rules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
r"(?i:^print\((?:\"|\')Hello World[.!]?(?:\"|\')\)$)": [ # Detect just printing hello world
2121
"You don't want to know how many times I've seen hello world in my training dataset, try something new."
2222
],
23-
r"(?P<content>__import__|__code__|ctypes)": [ # Detect use of esoteric stuff
24-
"Using `{}`?? Try asking someone in #esoteric-python"
23+
r"(?P<content>__import__|__code__|ctypes|inspect)": [ # Detect use of esoteric stuff
24+
"Using `{}`?? Try asking someone in <#470884583684964352>" # Eso-py channel ID so it actually links
2525
],
2626
r"(?m:(?:import |from )(?P<content>requests|httpx|aiohttp))": [ # Detect use of networking libraries
2727
(

0 commit comments

Comments
 (0)