diff --git a/bot/skills/towel_mode.py b/bot/skills/towel_mode.py index cf9ee36..72368db 100644 --- a/bot/skills/towel_mode.py +++ b/bot/skills/towel_mode.py @@ -198,6 +198,11 @@ def catch_reply(update: Update, context: CallbackContext): def is_worthy(text: str) -> bool: """check if reply is a valid bio as requested""" + + # backdoor for testing + if text.lower().find("i love vldc") != -1: + return True + if len(text) < 15: return False @@ -220,6 +225,8 @@ def is_worthy(text: str) -> bool: presence_penalty=0.6, ) + logger.info("text: %s is %s", text, response.choices[0].message.content) + return response.choices[0].message.content == "worthy"