from src.config.socket_config import *

##############################################################################
# Chat Input
##############################################################################

chat_conn_config = {
    # attributes
    'src': 'reddit',

    # messaging
    'input_host': INPUT_HOST,
    'input_port': INPUT_PORT_REDDIT
}

chat_dist_config = {
    # attributes
    'src': 'reddit',

    # distributor settings
    'dist_host': DIST_HOST,
    'dist_port': DIST_PORT_REDDIT,
    'stream_host': STREAM_HOST,
    'stream_port': STREAM_PORT_REDDIT
}

replay_config = {
    # connection
    'host': INTERNAL_HOST,
    'port': INTERNAL_PORT
}

##############################################################################
# Stream
##############################################################################

trending_config = {
    # attributes
    'src': 'reddit'
}

nlp_config = {
    # attributes
    'src': 'reddit'
}

stream_chat_config = {
    # attributes
    'src': 'reddit',
    'trending': True,
    'nlp': True,

    # module
    'module': 'src.sources.reddit._functions_chat',

    # messaging
    'stream_host': STREAM_HOST,
    'stream_port': STREAM_PORT_REDDIT
}

##############################################################################
# Master
##############################################################################

reddit_config = {
    # attributes
    'src': 'reddit',

    # api
    # prod creds
    'client_token': 'bx_HkZiUhuYJCw',
    'client_secret': '5l9swqgf2tAY2je0i61pNklgOCg',
    'user_agent': 'ISS:staycurrents.com:v0.1.9 (by /u/staycurrents)',

    # input components
    'chat_conn_config': chat_conn_config,
    'chat_dist_config': chat_dist_config,
    'replay_config': replay_config,

    # stream chat components
    'trending_config': trending_config,
    'nlp_config': nlp_config,
    'stream_chat_config': stream_chat_config
}
