From 8212edc406806d645d10679b3836ebdf12d844fd Mon Sep 17 00:00:00 2001 From: Aaron Crate Date: Fri, 27 Mar 2026 12:01:28 -0500 Subject: [PATCH] comment out boy you said it etc --- Dockerfile | 1 + garfpy/aod.py | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71f22d4..ee0e41e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,7 @@ RUN apk update && \ tcl-dev RUN pip3 install --no-cache-dir \ + config \ discord \ openai \ aiohttp \ diff --git a/garfpy/aod.py b/garfpy/aod.py index da100cd..73e9d3f 100644 --- a/garfpy/aod.py +++ b/garfpy/aod.py @@ -123,16 +123,16 @@ async def aod_message(garfbot, message): stats_embed.add_field(name=field, value="\n".join(values), inline=True) await message.channel.send(embed=stats_embed) - # Boy You Said It - words = re.findall(r"[a-zA-Z']+", message.content.lower()) - stops = {"a", "an", "the", "and", "or", "but", "is", "it", "in", "on", "at", "to", "of"} - words = [w for w in words if w not in stops] + # # Boy You Said It + # words = re.findall(r"[a-zA-Z']+", message.content.lower()) + # stops = {"a", "an", "the", "and", "or", "but", "is", "it", "in", "on", "at", "to", "of"} + # words = [w for w in words if w not in stops] - if words: - firsts = [w[0] for w in words] - commons = max(set(firsts), key=firsts.count) - count = firsts.count(commons) + # if words: + # firsts = [w[0] for w in words] + # commons = max(set(firsts), key=firsts.count) + # count = firsts.count(commons) - if count >= 3 or (len(words) >= 2 and count / len(words) >= 0.75): - await message.channel.send("Boy, you said it!") + # if count >= 3 or (len(words) >= 2 and count / len(words) >= 0.75): + # await message.channel.send("Boy, you said it!")