3 Commits

Author SHA1 Message Date
8212edc406 comment out boy you said it etc
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 1m17s
2026-03-27 12:01:28 -05:00
386a7e764d Merge pull request 'boy you said it' (#10) from boy-you-said-it into main
All checks were successful
Garfbot CI/CD Deployment / Deploy (push) Successful in 49s
Reviewed-on: #10
2026-03-26 22:41:08 +00:00
4880229e26 boy you said it 2026-03-26 16:48:26 -05:00
2 changed files with 16 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ RUN apk update && \
tcl-dev
RUN pip3 install --no-cache-dir \
config \
discord \
openai \
aiohttp \

View File

@@ -1,4 +1,5 @@
import os
import re
import json
import discord
from garfpy import logger
@@ -121,3 +122,17 @@ async def aod_message(garfbot, message):
for field, values in zip(table_fields, table_columns):
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]
# 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!")