<commit_before>from motobot import command
from requests import get


@command('fml')
def fml_command(message, database):
    return 'Provisional command for fml'
<commit_msg>Made FML work<commit_after>from motobot import command
from requests import get
from bs4 import BeautifulSoup


fml_cache = []


def load_fml():
    url = 'http://www.fmylife.com/random'
    bs = BeautifulSoup(get(url).text)

    for div in bs.find_all('div', {'class', 'article'}, recursive=True):
        fml_cache.append(div.find('p').text)


def get_fml():
    if len(fml_cache) == 0:
        load_fml()
    return fml_cache.pop(0)


@command('fml')
def fml_command(message, database):
    return get_fml()

{'fraction_non_alphanumeric': 0.12682215743440234, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 4.204545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5581181', 'n_tokens_mistral': 249, 'n_tokens_neox': 236, 'n_words': 60}