from GramAddict.core.storage import Storage from GramAddict.core.utils import ( check_adb_connection, close_instagram, get_instagram_version, get_value, open_instagram, save_crash, screen_sleep, update_available, ) from GramAddict.core.views import TabBarView from GramAddict.version import __version__ # Logging initialization configure_logger() logger = logging.getLogger(__name__) if update_available(): logger.warn( "NOTICE: There is an update available. Please update so that you can get all the latest features and bugfixes. https://github.com/GramAddict/bot" ) logger.info( f"GramAddict {__version__}", extra={"color": f"{Style.BRIGHT}{Fore.MAGENTA}"} ) # Global Variables device_id = None first_run = True plugins = PluginLoader("GramAddict.plugins").plugins sessions = PersistentList("sessions", SessionStateEncoder)
save_crash, update_available, ) from GramAddict.core.views import ( AccountView, ProfileView, TabBarView, load_config as load_views, ) from GramAddict.version import __version__ # Pre-Load Config configs = Config(first_run=True) # Logging initialization configure_logger(configs.debug, configs.username) logger = logging.getLogger(__name__) if update_available(): logger.warn( "NOTICE: There is an update available. Please update so that you can get all the latest features and bugfixes. https://github.com/GramAddict/bot" ) logger.info(f"GramAddict {__version__}", extra={"color": f"{Style.BRIGHT}{Fore.MAGENTA}"}) # Global Variables sessions = PersistentList("sessions", SessionStateEncoder) # Load Config configs.load_plugins() configs.parse_args()