# Path: odotaapi/getodmatchdetails.py
# def getODMatchDetails(matchID, q=None):
#             URL = 'https://api.opendota.com/api/matches/' + str(matchID)
# 
# Path: odotaapi/requestparsematch.py
# def requestParseMatch(matchID, holdUntilParsed=False):
# def isParsed(jobId):
# 
# Path: displayreddit/drodotachat.py
# def displayResult(matchOdotaJson):


from odotaapi import getodmatchdetails, requestparsematch
from displayreddit import drodotachat

def odotaChat(matchID):
    requestparsematch.requestParseMatch(matchID, holdUntilParsed=True)
    matchJson = getodmatchdetails.getODMatchDetails(matchID)

    if matchJson['chat'] is not None:

# Path: odotaapi/getodmatchdetails.py
# def getODMatchDetails(matchID, q=None):
#             URL = 'https://api.opendota.com/api/matches/' + str(matchID)
# 
# Path: odotaapi/requestparsematch.py
# def requestParseMatch(matchID, holdUntilParsed=False):
# def isParsed(jobId):
# 
# Path: displayreddit/drodotachat.py
# def displayResult(matchOdotaJson):


# Path: botcommands/odotachat.py
from odotaapi import getodmatchdetails, requestparsematch
from displayreddit import drodotachat


def odotaChat(matchID):
    requestparsematch.requestParseMatch(matchID, holdUntilParsed=True)
    matchJson = getodmatchdetails.getODMatchDetails(matchID)

    if matchJson['chat'] is not None:

        reply = drodotachat.displayResult(matchJson)