<commit_before>from conf import conf<commit_msg>Added basic bot run<commit_after>from conf import conf
from connection import IRC


class MisterRoboto:

    def __init__(self, socket):
        self.socket = socket

    def run(self):
        self.socket.connect()
        self.socket.auth()

        while True:
            response = self.socket.recv(2048).rstrip()

            if len(response) == 0:
                self.socket = self.socket.connect()
                self.socket = self.socket.auth()

            self.socket.ping_pong(response)


if __name__ == '__main__':
    irc = IRC(conf)
    bot = MisterRoboto(irc.sock)
{'fraction_non_alphanumeric': 0.10476190476190476, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 2.252577319587629, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7256848', 'n_tokens_mistral': 198, 'n_tokens_neox': 181, 'n_words': 44}