Skip to content

Commit 1c1d4f4

Browse files
authored
Merge pull request #147 from Soheab/patch-1
[smart_eval] Detect use of input
2 parents 44d3728 + b3a4013 commit 1c1d4f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)