TTMediaBot README - English Version


TTMediaBot - User Guide

English Version

Introduction

This script set automates the installation, configuration, launching, and management of TTMediaBot in both local user mode and Docker environments.

General Environment Preparation

Creating a User Account for the Bot

To ensure TTMediaBot works properly as a user service:

1. Create the user:

        
        sudo adduser botuser
    

During user creation, set a password and fill in the required information.

2. Add the user to the sudo group:

        
        sudo usermod -aG sudo botuser
    

3. Log in as the new user:

Log out from the current terminal or SSH session and log in as botuser, for example:

        
        ssh botuser@server_address
    

File Overview and Their Functions

1. automated_install_debug_mode_ttmediabot_normal_mode.sh

Function: Automatic installation of TTMediaBot with debugging mode enabled.

What it does:

Usage:

            
            chmod +x automated_install_debug_mode_ttmediabot_normal_mode.sh
./automated_install_debug_mode_ttmediabot_normal_mode.sh
        

2. automated_install_silent_mode_ttmediabot_normal_mode.sh

Function: Automatic installation of TTMediaBot in silent mode.

Usage:

            
            chmod +x automated_install_silent_mode_ttmediabot_normal_mode.sh
./automated_install_silent_mode_ttmediabot_normal_mode.sh
        

3. automated_install_ttmediabot_docker.sh

Function: Automates installation of TTMediaBot in Docker.

Usage:

            
            chmod +x automated_install_ttmediabot_docker.sh
./automated_install_ttmediabot_docker.sh
        

4. build_image_for_ttmediabot.sh

Function: Builds the Docker image.

Requirements: The script requires a docker directory containing the Dockerfile.

Usage:

            
            chmod +x build_image_for_ttmediabot.sh
./build_image_for_ttmediabot.sh
        

5. manage_bots_in_docker.sh

Function: Manage Docker containers with an interactive menu.

Usage:

            
            chmod +x manage_bots_in_docker.sh
./manage_bots_in_docker.sh
        

6. run_bot_manually.sh

Function: Manually launches a Docker container for the bot.

Requirements: Requires a directory with config.json and cookies.txt files.

Usage:

            
            chmod +x run_bot_manually.sh
./run_bot_manually.sh <bot_name>
        

7. docker/Dockerfile

Function: Docker configuration for TTMediaBot.

Requirements: Required for Docker scripts.

Important

Note: All Docker scripts must be executed as root.