<commit_before>"""

If you're just lost in life and need something to make a choice for you.
Ask our beloved dongbot!

By Lucas/Mezmor

@syntax .c <comma delimited list>

"""

from modules import *

class Choose(Module):

    def __init__(self, *args, **kwargs):
        """Constructor"""
        Module.__init__(self, kwargs=kwargs)
        
    def _register_events(self):
        """Register module commands."""

        self.add_command('c', 'choose')
    
    def choose(self, event):
        # Make that bitch a one-liner
        # Bitches love one-liners
        # - Sentinel, Oct 28 2013
        self.msg(event['target'], random.choice([ item.strip() for item in event['args'].split(",") if item ])
        <commit_msg>Added life councelor<commit_after>"""

If you're just lost in life and need something to make a choice for you.
Ask our beloved dongbot!

By Lucas/Mezmor

@syntax .c <comma delimited list>

"""

from modules import *

class Choose(Module):

    def __init__(self, *args, **kwargs):
        """Constructor"""
        Module.__init__(self, kwargs=kwargs)
        
    def _register_events(self):
        """Register module commands."""

        self.add_command('c', 'choose')
    
    def choose(self, event):
        # Make that bitch a one-liner
        # Bitches love one-liners
        # - Sentinel, Oct 28 2013
        self.msg(event['target'], random.choice([ item.strip() for item in event['args'].split(",") if item ]))

{'fraction_non_alphanumeric': 0.12998624484181567, 'fraction_numerical': 0.008253094910591471, 'mean_word_length': 2.75968992248062, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1729571', 'n_tokens_mistral': 456, 'n_tokens_neox': 429, 'n_words': 142}