# Path: botcommands/averagelastxgames.py
# def averageLastXGames(playerID, amount=100, detailedAnalysis=False, heroID=None, gameModeID=None, tournamentGamesOnly=False, getMMR=True):
# def analyzeMatches(playerID, detailedMatches):
# def addStatsTogether(storage, player, addTogether):
# def testBit(int_type, offset):
# def amountOfTowersDestroyed(tower_status):
# def amountOfBarracksDestroyed(barracks_status):
# 
# Path: botcommands/match.py
# def match(matchID):
# 
# 
#     t = threading.Thread(target=requestparsematch.requestParseMatch, args = (matchID,))
#     t.start()
# 
#     matchJson = getmatchdetails.getMatchDetails(matchID)
# 
#     accountIDs = []
#     for player in matchJson['result']['players']:
#         accountIDs.append(player['account_id'])
# 
#     playerSummariesJson = getplayersummaries.getPlayerSummaries(accountIDs)
# 
#     reply = drmatch.displayResult(matchJson, playerSummariesJson)
# 
#     return reply
# 
# Path: botcommands/odotachat.py
# def odotaChat(matchID):
# 
# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"
# 
# Path: reddit/botinfo.py

# 
# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"


from botcommands import averagelastxgames, match, odotachat
from steamapi import getheroes
from reddit.botinfo import message,botName
from steamapi import getheroes
import time
import re
                    analyzedMatches.append(matchID)
            else:
                break

    except:
        print('[workeranalyzecontent] failed to get match')



    replyIntro = ''

    replyEnd = '[^^source](http://github.com/NNTin/Reply-Dota-2-Reddit) ^^on ^^github, [^^message](https://www.reddit.com/message/compose/?to=lumbdi) ^^the ^^owner'
    replyEnd = '[^^source](http://github.com/NNTin/Reply-Dota-2-Reddit) ^^on ^^github, [^^message](https://www.reddit.com/message/compose/?to=lumbdi) ^^the ^^owner ^^on [^^Discord](https://discord.gg/Dkg79tc)'

    reply = replyIntro + partialReply + replyEnd


    if(commandCounter != 0):
        i = 0
        while i < 20:
            i += 1
            try:
                if isPost:
                    my_new_comment = post.reply(reply)
                    print('reply success')

                    j = 0
                    while j < 20:
                        j += 1
                        try:

# Path: botcommands/averagelastxgames.py
# def averageLastXGames(playerID, amount=100, detailedAnalysis=False, heroID=None, gameModeID=None, tournamentGamesOnly=False, getMMR=True):
# def analyzeMatches(playerID, detailedMatches):
# def addStatsTogether(storage, player, addTogether):
# def testBit(int_type, offset):
# def amountOfTowersDestroyed(tower_status):
# def amountOfBarracksDestroyed(barracks_status):
# 
# Path: botcommands/match.py
# def match(matchID):
# 
# 
#     t = threading.Thread(target=requestparsematch.requestParseMatch, args = (matchID,))
#     t.start()
# 
#     matchJson = getmatchdetails.getMatchDetails(matchID)
# 
#     accountIDs = []
#     for player in matchJson['result']['players']:
#         accountIDs.append(player['account_id'])
# 
#     playerSummariesJson = getplayersummaries.getPlayerSummaries(accountIDs)
# 
#     reply = drmatch.displayResult(matchJson, playerSummariesJson)
# 
#     return reply
# 
# Path: botcommands/odotachat.py
# def odotaChat(matchID):
# 
# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"
# 
# Path: reddit/botinfo.py

# 
# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"


# Path: reddit/workeranalyzecontent.py
from botcommands import averagelastxgames, match, odotachat
from steamapi import getheroes
from reddit.botinfo import message,botName
from steamapi import getheroes
import time
import re

                    analyzedMatches.append(matchID)
            else:
                break

    except:
        print('[workeranalyzecontent] failed to get match')



    replyIntro = ''

    replyEnd = '[^^source](http://github.com/NNTin/Reply-Dota-2-Reddit) ^^on ^^github, [^^message](https://www.reddit.com/message/compose/?to=lumbdi) ^^the ^^owner'
    replyEnd = '[^^source](http://github.com/NNTin/Reply-Dota-2-Reddit) ^^on ^^github, [^^message](https://www.reddit.com/message/compose/?to=lumbdi) ^^the ^^owner ^^on [^^Discord](https://discord.gg/Dkg79tc)'

    reply = replyIntro + partialReply + replyEnd


    if(commandCounter != 0):
        i = 0
        while i < 20:
            i += 1
            try:
                if isPost:
                    my_new_comment = post.reply(reply)
                    print('reply success')

                    j = 0
                    while j < 20:
                        j += 1
                        try:

                            message_template = 'https://www.reddit.com/message/compose/?to=' + botName + '&subject=deletion&message={fullname}'