| Server IP : 157.230.181.24 / Your IP : 216.73.217.11 Web Server : Apache/2.4.58 (Ubuntu) System : Linux conductive 6.8.0-117-generic #117-Ubuntu SMP PREEMPT_DYNAMIC Tue May 5 19:26:24 UTC 2026 x86_64 User : ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /opt/aim-bots/__pycache__/ |
Upload File : |
�
T?Yj� � � � d Z ddlmZ ddlZddlZddlmZ ddlmZm Z m
Z
ed� Zd d�Ze
dk( r
e e� � �y)
zBSeed AIM profile HTML into Open OSCAR Server for all persona bots.� )�annotationsN)�Path)�PROFILES�load_profile_from_voice�persist_aim_profilez/opt/aim-bots/personasc � � t t j � dkD rt t j d � n
t d� } t t
j
� � D ]� }|j � s�|dz }|dz }|j � s�/t j |j � � }|j � r#t j |j � � ni }|d }t ||� xs$ t j |j � d� }|st! d|� d�� ��t# ||| � � t! d
|� dt |� � d�� �� y
)N� z/var/lib/ras/oscar.sqlitezpersona.jsonz
voice.json�screen_name� zskip z: no profile_html)�db_pathz
profile set: z (z chars)r )�len�sys�argvr �sorted�PERSONAS_DIR�iterdir�is_dir�exists�json�loads� read_textr r �get�lower�printr )�db�persona_dir�persona_path�
voice_path�persona�voice�sn�htmls �!/opt/aim-bots/set_aim_profiles.py�mainr$ s& � �!�#�(�(�m�a�/��c�h�h�q�k� �T�:U�5V�B��l�2�2�4�5� 8���!�!�#��"�^�3�� �<�/�
��"�"�$���*�*�\�3�3�5�6��6@�6G�6G�6I��
�
�:�/�/�1�2�r��
�]�
#��&�u�g�6�V�(�,�,�r�x�x�z�SU�:V����E�"��.�/�0���B��b�1�
�
�b�T��C��I�;�g�6�7�8�
� �__main__)�return�int)�__doc__�
__future__r r r �pathlibr �aim_profilesr r r r r$ �__name__�
SystemExit� r% r# �<module>r0 sF �� H� "� �
� � O� O��,�-��
�* �z��
�T�V�
�� r%