import os , sys , time from colorama import Fore , Style , init from arizona_ai_sdk import ArizonaAIClient init ( autoreset = True ) API_KEY = "44b4114e0325fd64454f41067a886e5a" AI_NAME = "ArizonaAI" VERSION = "1.0" client = ArizonaAIClient ( api_key = API_KEY ) history = [ ] def clear ( ) : os . system ( "cls" if os . name == "nt" else "clear" ) def banner ( ) : print ( Fore . CYAN + Style . BRIGHT + r""" █████╗ ██████╗ ██╗███████╗ ██████╗ ███╗ ██╗ █████╗ ██╔══██╗██╔══██╗██║╚══███╔╝██╔═══██╗████╗ ██║██╔══██╗ ███████║██████╔╝██║ ███╔╝ ██║ ██║██╔██╗ ██║███████║ ██╔══██║██╔══██╗██║ ███╔╝ ██║ ██║██║╚██╗██║██╔══██║ ██║ ██║██║ ██║██║███████╗╚██████╔╝██║ ╚████║██║ ██║ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝╚══════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ """ ) print ( Fore . YELLOW + f"{AI_NAME}v{VERSION}" ) print ( Fore . GREEN + "Ну ебать пиши свой запрос котакбас, если ты тупой то /help" ) print ( "-" * 60 ) def loading ( t = "Ну я думаю ебать, потею тут." ) : for _ in range ( 3 ) : for d in [ ". " , ".. " , "..." ] : sys . stdout . write ( Fore . MAGENTA + f"\r{t}{d}" ) sys . stdout . flush ( ) ; time . sleep ( 0.4 ) print ( "\r" + " " * 30 + "\r" , end = "" ) def help_menu ( ) : print ( Fore . CYAN + """ /help помощь /clear почистить чат /exit выйти на*** /history история #подсхалка #порнуха """ ) def show_history ( ) : if not history : print ( Fore . RED + "История пуста." ) ; return print ( Fore . YELLOW + "История:" ) for i , h in enumerate ( history , 1 ) : print ( Fore . CYAN + f"{i}.{h}" ) def ask_ai ( q ) : loading ( ) try : return client . ask ( q ) except Exception as e : return f"Опааа, а тут ошибочка ИИ:{e}" def main_loop ( ) : clear ( ) ; banner ( ) while True : u = input ( Fore . GREEN + "Ты ➜ " + Style . BRIGHT ) if not u . strip ( ) : continue if u == "/exit" : print ( Fore . RED + "Выход" ) ; break elif u == "/clear" : clear ( ) ; banner ( ) elif u == "/help" : help_menu ( ) elif u == "/history" : show_history ( ) else : history . append ( u ) a = ask_ai ( u ) print ( Fore . BLUE + Style . BRIGHT + f"{AI_NAME}➜ " , end = "" ) print ( Fore . WHITE + a ) print ( "-" * 60 ) if __name__ == "__main__" : main_loop ( )