Cookie Thread Act 4 (Act 5): The Fifth One

so as per the rules u gotta release it ;)

2 Likes

nyaaaaaaaaaaaaaaaa (I mean it was in dead chat so I don’t have to but) yeah I’m about to post it here

3 Likes

hence the wink. bemoyicons

1 Like

we never doubted him for a second wym

1 Like

I kinda want to see wolf chat purely because of how much chaos I imagine went on in there.

1 Like

losing mash wolfchats tend to be absurdly depressing but this isnt MU so maybe vibes are good anyways

3 Likes

wasn’t that chaotic or depressing idt

1 Like

This was not intentional. I had no idea how many events would involve luck and just assumed there would be some lmao

2 Likes

FINALLY

1 Like

import os

strings_to_search_for = ['you should know how much i love memes',
                         "I have also considered fake scumslipping to get out of this game. I signed",
                         "By the way I made logs incase I died last night and they",
                         "REALLY IMPORTANT AND I SWEAR IT FOR ONCE",
                         "actually were a wolf who had made no scummy plays, then he deserves",
                         "always put stuff off till the last minute, that",
                         "wouldnotstabyoubecauseyouareinasocialthunderdomeandthereforeifyouo",
                         "to voting on coinflip",
                         "a two shot cop and at this point",
                         "however this is neat reference when"
                         ]


def folder_contains_strings(folder_path: str, strings: list[str]) -> None:
    files_in_folder = os.listdir(folder_path)
    for file in files_in_folder:
        if len(file) >= 5 and file[len(file) - 5:] == ".html":
            full_file_path = os.path.join(folder_path, file)
            #print(full_file_path)
            file_reader = open(full_file_path, 'r', encoding='utf-8')
            html_text = file_reader.read()
            for string in strings:
                if html_text.find(string) != -1:
                    backslash = '\\'
                    print(f"fol-archive.netlify.app/t/{full_file_path[4:len(full_file_path)-5].replace(backslash, '/')} has the desired string, '{string}'. Flushed emoji")
    
allFolders = os.listdir(r".\t")
for num in range(len(allFolders)):
    if num % 10 == 0:
        print(f"Threads finished: {num}")
    folder = allFolders[num]
    fullpath = os.path.join(r".\t", folder)
    if os.path.isdir(fullpath):
        try:
            folder_contains_strings(fullpath, strings_to_search_for)
        except UnicodeDecodeError:
            print(f"There was a Unicode Decode Error for {fullpath}. Any strings for that game may have been missed.")

 


you have to clone the FoL-Archive github repo
then be in the FoL-Archive folder when running the script


also this is like the maximally bad solution :joy_cat:
it doesn’t even decode the html or anything
so searching for, like, newlines might not work. also it fails at some threads for ??? reasons
buuuuuuuuut it works for this event, and for searching short strings from screenshots

3 Likes

Not me seeing that and thinking that it’s buff Ena.

:sob:

2 Likes

trail mix is goated

1 Like

fr

perhaps the greatest lunch secondary item of all time.

sandwich or hot meal archetype for main meal. trail mix is ultimate support role no matter who is #1

1 Like

you have no idea how much i wanted to post in here but couldn’t
(im lying you do have an idea)

1 Like

SAME

1 Like

so much bullshit happened to me lmao

i had so many misc thoughts i forgot and was gonna wait to say in cookie thread

4 Likes

YEAH

1 Like