Skip to content

Commit b3a4013

Browse files
authored
[smart_eval] Detect use of input
1 parent 2efd858 commit b3a4013

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bot/exts/smart_eval/_smart_eval_rules.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
r"print\((?:\"|\')(?P<content>.*)(?:\"|\')\)": [ # Capture what is inside a print statement
1111
"Your program may print: {}!\n-# I'm very helpful"
1212
],
13+
r"\b(?P<content>input)\b": [ # Detect use of input()
14+
"I don't know how to answer that...",
15+
"Beep Boop! I'm just a bot that can't input text",
16+
"How do you think users are supposed to input text there?",
17+
],
1318
r"(?s:.{1500,})": [ # Capture anything over 1500 characters
1419
"I ain't wasting my tokens tryna read allat :skull:",
1520
"Uhh, that's a lot of code. Maybe just start over."

0 commit comments

Comments
 (0)