<commit_before># bot.py

# A custom Twitch bot for Hex + MtG card searches
# Based on tutorial here: http://www.instructables.com/id/Twitchtv-Moderator-Bot/
# (The tutorial has several non-functioning bits)
# Uses regex expressions to parse twitch messages and to match card names

# You will need an OAUTH token through Twitch

# written for Python 3.6
# author: <NAME>
# contact: Twitter @krusingon

from time import sleep
import socket
import re
import csv
import sys

HOST = "irc.chat.twitch.tv"         # the Twitch IRC server
PORT = 6667                         # always use port 6667!
NICK = "krusbot"           			# your Twitch username, lowercase
PASS = "<PASSWORD>:" # your Twitch OAuth token
global CHAN
CHAN = "#jeffhoogland"              # the channel you want to join
RATE = 20/30						# messages per second
global MODE<commit_msg>removed channel details<commit_after># bot.py

# A custom Twitch bot for Hex + MtG card searches
# Based on tutorial here: http://www.instructables.com/id/Twitchtv-Moderator-Bot/
# (The tutorial has several non-functioning bits)
# Uses regex expressions to parse twitch messages and to match card names

# You will need an OAUTH token through Twitch

# written for Python 3.6
# author: <NAME>
# contact: Twitter @krusingon

from time import sleep
import socket
import re
import csv
import sys

HOST = "irc.chat.twitch.tv"         # the Twitch IRC server
PORT = 6667                         # always use port 6667!
NICK = "botname"           			# your Twitch username, lowercase
PASS = "<PASSWORD>:" # your Twitch OAuth token
global CHAN
CHAN = "#channelname"              # the channel you want to join
RATE = 20/30						# messages per second
global MODE
{'fraction_non_alphanumeric': 0.07533843437316068, 'fraction_numerical': 0.0164802825191289, 'mean_word_length': 3.0572792362768495, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3410042', 'n_tokens_mistral': 539, 'n_tokens_neox': 497, 'n_words': 209}