# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"
# 
# Path: steamapi/getproplayerlist.py
# def requestGetProPlayerList():
#     URL = "https://api.steampowered.com/IDOTA2Fantasy_570/GetProPlayerList/v1?key=" + SteamAPIKey
# 
# Path: steamapi/getschema.py
# def requestGetSchema():
#     URL = "https://api.steampowered.com/IEconItems_570/GetSchemaURL/v1?key=" + SteamAPIKey
#     URL = response['result']['items_game_url']
# 
# Path: steamapi/getleaguelisting.py
# def requestGetLeagueListing():
#         URL = "https://api.steampowered.com/IDOTA2Match_570/GetLeagueListing/v1?key=" + SteamAPIKey
# 
# Path: reddit/botinfo.py

# 
# Path: reddit/workerdeletebadcomments.py
# def deleteBadComments(r):
# 
# Path: reddit/workerfindcomments.py
# def findComments(r):
# 
# Path: reddit/workerdeleterequestedcomments.py
# def deleteRequestedComments(r):
# 
# Path: reddit/botinfo.py



import praw
import obot
import threading
from steamapi import getheroes, getproplayerlist, getschema, getleaguelisting
from reddit import botinfo
from reddit import workerdeletebadcomments, workerfindcomments, workerdeleterequestedcomments
from reddit.botinfo import message
#message = True


class LoginReddit:

    def __init__(self):
        if message: print('[loginreddit] logging in')
        r = praw.Reddit(client_id=obot.client_id,
                        client_secret=obot.client_secret,
                        user_agent=obot.user_agent,
                        username=obot.username,
                        password=obot.password)


        if message: print('[loginreddit] logging successful')

        if message: print('[loginreddit] updating heroDictionary')
        getheroes.requestGetHeroes()
        if message: print('[loginreddit] updating heroDictionary success')

        if message: print('[loginreddit] updating proPlayerDictionary')

# Path: steamapi/getheroes.py
# def requestGetHeroes():
#     URL = "https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key=" + SteamAPIKey + "&language=en_us"
# 
# Path: steamapi/getproplayerlist.py
# def requestGetProPlayerList():
#     URL = "https://api.steampowered.com/IDOTA2Fantasy_570/GetProPlayerList/v1?key=" + SteamAPIKey
# 
# Path: steamapi/getschema.py
# def requestGetSchema():
#     URL = "https://api.steampowered.com/IEconItems_570/GetSchemaURL/v1?key=" + SteamAPIKey
#     URL = response['result']['items_game_url']
# 
# Path: steamapi/getleaguelisting.py
# def requestGetLeagueListing():
#         URL = "https://api.steampowered.com/IDOTA2Match_570/GetLeagueListing/v1?key=" + SteamAPIKey
# 
# Path: reddit/botinfo.py

# 
# Path: reddit/workerdeletebadcomments.py
# def deleteBadComments(r):
# 
# Path: reddit/workerfindcomments.py
# def findComments(r):
# 
# Path: reddit/workerdeleterequestedcomments.py
# def deleteRequestedComments(r):
# 
# Path: reddit/botinfo.py



# Path: reddit/loginreddit.py
import praw
import obot
import threading
from steamapi import getheroes, getproplayerlist, getschema, getleaguelisting
from reddit import botinfo
from reddit import workerdeletebadcomments, workerfindcomments, workerdeleterequestedcomments
from reddit.botinfo import message

#message = True


class LoginReddit:

    def __init__(self):
        if message: print('[loginreddit] logging in')
        r = praw.Reddit(client_id=obot.client_id,
                        client_secret=obot.client_secret,
                        user_agent=obot.user_agent,
                        username=obot.username,
                        password=obot.password)


        if message: print('[loginreddit] logging successful')

        if message: print('[loginreddit] updating heroDictionary')
        getheroes.requestGetHeroes()
        if message: print('[loginreddit] updating heroDictionary success')

        if message: print('[loginreddit] updating proPlayerDictionary')

        getproplayerlist.requestGetProPlayerList()