From 99203b9bd77a8241c0090e64fdb3b74b728464f5 Mon Sep 17 00:00:00 2001 From: Nighthawk Date: Tue, 21 Jan 2025 22:40:09 -0500 Subject: [PATCH] Update bnet_auth_tool.py Title Update --- bnet_auth_tool.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bnet_auth_tool.py b/bnet_auth_tool.py index 69cdbdd..cfb37fb 100644 --- a/bnet_auth_tool.py +++ b/bnet_auth_tool.py @@ -32,13 +32,19 @@ print(r""" print("Battle.net Authenticator Tool - by Nighthawk42 - Version 1.1 (01/21/2025)") +class Title: + """Console/Window Title.""" + if sys.platform == "win32": + os.system('title Battle.net Authenticator Tool') + else: + sys.stdout.write("\x1b]2;Battle.net Authenticator Tool\x07") + class Config: """Configuration for Battle.net Authenticator API.""" BASE_URL = "https://authenticator-rest-api.bnet-identity.blizzard.net/v1/authenticator" SSO_URL = "https://oauth.battle.net/oauth/sso" CLIENT_ID = "baedda12fe054e4abdfc3ad7bdea970a" - class BattleNetAuthenticator: """ Handles Battle.net Authenticator operations, including attaching an authenticator, @@ -357,4 +363,4 @@ if __name__ == "__main__": try: interactive_cli() except KeyboardInterrupt: - graceful_exit() \ No newline at end of file + graceful_exit()