<reponame>Gumbraise/HXYA
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from lib.menu import pyVer, clear, menu
from lib.update import update

pyVer()
update()

print (' HXYA modules verification...', end='')

try:
    import os, requests, json, time, sys, datetime
    from colorama import init, Fore, Back, Style
    print (' Good!')
except:
    print (' Some modules are missing. Please execute python3 -m pip install -r requirements.txt')
    input(' Type ENTER to exit')

print (' Modules verification...', end='')

try:
    from core.youtube import likClo, disClo, subClo, comClo, vieClo
    from core.instagram import avaPse, bomber, wdnfm, unfollow
    from core.ccg import ccg
    from core.mail import mail, statMail
    from lib.config import config
    from lib.cache import initca

    import lib.print as printMenu
    print (' Good!')
    input(' Type ENTER to launch HXYA')
except:
    print (' Some HXYA modules are missing. Please download the new version on https://github.com/gumbraise/HXYA')
    input(' Type ENTER to exit')
    exit()

clear()
menu()
print (printMenu.mainMenu)

try:
    while True:
        try:
            c = input (" HXYA>").lower()

            if (c == '1'):
                clear()
                menu()
                print (printMenu.instagramMenu)
                while True:
                    c = input (" HXYA>Instagram>").lower()
                    if c == '1':
                        clear()
                        menu()
                        avaPse()
                    if c == '2':
                        clear()
                        menu()
                        bomber()
                    if c == '3':
                        clear()
                        menu()
                        wdnfm()
                    if c == '4':
                        clear()
                        menu()
                        unfollow()
                    elif c == '91':
                        clear()
                        menu()
                        config('instagram')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.instagramMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid options')
            elif (c == '2'):
                clear()
                menu()
                print (printMenu.youtubeMenu)
                while True:
                    c = input (" HXYA>YouTube>").lower()
                    if c == '1':
                        clear()
                        menu()
                        likClo()
                    if c == '2':
                        clear()
                        menu()
                        disClo()
                    if c == '3':
                        clear()
                        menu()
                        subClo()
                    if c == '4':
                        clear()
                        menu()
                        comClo()
                    if c == '5':
                        clear()
                        menu()
                        vieClo()
                    if c == '91':
                        clear()
                        menu()
                        config('youtube')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.youtubeMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '3'):
                clear()
                menu()
                print (printMenu.ccgMenu)
                while True:
                    c = input (" HXYA>CCG>").lower()
                    if c == '1':
                        clear()
                        menu()
                        ccg('visa')
                    if c == '2':
                        clear()
                        menu()
                        ccg('mastercard')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.ccgMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '4'):
                clear()
                menu()
                print(printMenu.mailMenu)
                while True:
                    c = input (" HXYA>Mail>").lower()
                    if c == '1':
                        clear()
                        menu()
                        mail()
                    elif c == '91':
                        clear()
                        menu()
                        statMail()
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.mailMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '91'):
                clear()
                menu()
                config('all')
            elif (c == '92'):
                c = input (" Are you sure to clear the totality of the cache ? (y/n) ")
                if c == "y":
                    initca()
                else:
                    print (" Cancelled")
            elif (c == 'c'):
                clear()
                menu()
                print (printMenu.instagramMenu)
            elif (c == 'q'):
                sys.exit(" Please consider donating. Good bye")
            else:
                print(' Please use a valid option')
        except EOFError:
            print(' Please use a valid option')
except KeyboardInterrupt:
    sys.exit("\n Please consider donating. Good bye")
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from lib.menu import pyVer, clear, menu
from lib.update import update

pyVer()
update()

print (' HXYA modules verification...', end='')

try:
    import os, requests, json, time, sys, datetime
    from colorama import init, Fore, Back, Style
    print (' Good!')
except:
    print (' Some modules are missing. Please execute python3 -m pip install -r requirements.txt')
    input(' Type ENTER to exit')

print (' Modules verification...', end='')

try:
    from core.youtube import likClo, disClo, subClo, comClo, vieClo
    from core.instagram import avaPse, bomber, wdnfm, unfollow
    from core.ccg import ccg
    from core.mail import mail, statMail
    from lib.config import config
    from lib.cache import initca

    import lib.print as printMenu
    print (' Good!')
    input(' Type ENTER to launch HXYA')
except:
    print (' Some HXYA modules are missing. Please download the new version on https://github.com/gumbraise/HXYA')
    input(' Type ENTER to exit')
    exit()

clear()
menu()
print (printMenu.mainMenu)

try:
    while True:
        try:
            c = input (" HXYA>").lower()

            if (c == '1'):
                clear()
                menu()
                print (printMenu.instagramMenu)
                while True:
                    c = input (" HXYA>Instagram>").lower()
                    if c == '1':
                        clear()
                        menu()
                        avaPse()
                    if c == '2':
                        clear()
                        menu()
                        bomber()
                    if c == '3':
                        clear()
                        menu()
                        wdnfm()
                    if c == '4':
                        clear()
                        menu()
                        unfollow()
                    elif c == '91':
                        clear()
                        menu()
                        config('instagram')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.instagramMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid options')
            elif (c == '2'):
                clear()
                menu()
                print (printMenu.youtubeMenu)
                while True:
                    c = input (" HXYA>YouTube>").lower()
                    if c == '1':
                        clear()
                        menu()
                        likClo()
                    if c == '2':
                        clear()
                        menu()
                        disClo()
                    if c == '3':
                        clear()
                        menu()
                        subClo()
                    if c == '4':
                        clear()
                        menu()
                        comClo()
                    if c == '5':
                        clear()
                        menu()
                        vieClo()
                    if c == '91':
                        clear()
                        menu()
                        config('youtube')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.youtubeMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '3'):
                clear()
                menu()
                print (printMenu.ccgMenu)
                while True:
                    c = input (" HXYA>CCG>").lower()
                    if c == '1':
                        clear()
                        menu()
                        ccg('visa')
                    if c == '2':
                        clear()
                        menu()
                        ccg('mastercard')
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.ccgMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '4'):
                clear()
                menu()
                print(printMenu.mailMenu)
                while True:
                    c = input (" HXYA>Mail>").lower()
                    if c == '1':
                        clear()
                        menu()
                        mail()
                    elif c == '91':
                        clear()
                        menu()
                        statMail()
                    elif c == 'c':
                        clear()
                        menu()
                        print(printMenu.mailMenu)
                    elif c == 'b':
                        clear()
                        menu()
                        print (printMenu.mainMenu)
                        break
                    elif c == 'q':
                        sys.exit(" Please consider donating. Good bye")
                    else:
                        print(' Please use a valid option')
            elif (c == '91'):
                clear()
                menu()
                config('all')
            elif (c == '92'):
                c = input (" Are you sure to clear the totality of the cache ? (y/n) ")
                if c == "y":
                    initca()
                else:
                    print (" Cancelled")
            elif (c == 'c'):
                clear()
                menu()
                print (printMenu.instagramMenu)
            elif (c == 'q'):
                sys.exit(" Please consider donating. Good bye")
            else:
                print(' Please use a valid option')
        except EOFError:
            print(' Please use a valid option')
except KeyboardInterrupt:
    sys.exit("\n Please consider donating. Good bye")
#!/usr/bin/env python3 # -*- coding: utf-8 -*-