From b3a4013082f53255c84c14d575bc2cb825089354 Mon Sep 17 00:00:00 2001 From: Soheab <33902984+Soheab@users.noreply.github.com> Date: Sun, 27 Apr 2025 00:48:55 +0200 Subject: [PATCH] [smart_eval] Detect use of input --- bot/exts/smart_eval/_smart_eval_rules.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot/exts/smart_eval/_smart_eval_rules.py b/bot/exts/smart_eval/_smart_eval_rules.py index e7df923..1337aba 100644 --- a/bot/exts/smart_eval/_smart_eval_rules.py +++ b/bot/exts/smart_eval/_smart_eval_rules.py @@ -10,6 +10,11 @@ r"print\((?:\"|\')(?P.*)(?:\"|\')\)": [ # Capture what is inside a print statement "Your program may print: {}!\n-# I'm very helpful" ], + r"\b(?Pinput)\b": [ # Detect use of input() + "I don't know how to answer that...", + "Beep Boop! I'm just a bot that can't input text", + "How do you think users are supposed to input text there?", + ], r"(?s:.{1500,})": [ # Capture anything over 1500 characters "I ain't wasting my tokens tryna read allat :skull:", "Uhh, that's a lot of code. Maybe just start over."