This script set automates the installation, configuration, launching, and management of TTMediaBot in both local user mode and Docker environments.
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
Function: Automatic installation of TTMediaBot with debugging mode enabled.
What it does:
config.json
file.systemd
service for the bot.Usage:
chmod +x automated_install_debug_mode_ttmediabot_normal_mode.sh
./automated_install_debug_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
Function: Automates installation of TTMediaBot in Docker.
Usage:
chmod +x automated_install_ttmediabot_docker.sh
./automated_install_ttmediabot_docker.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
Function: Manage Docker containers with an interactive menu.
Usage:
chmod +x manage_bots_in_docker.sh
./manage_bots_in_docker.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>
Function: Docker configuration for TTMediaBot.
Requirements: Required for Docker scripts.
Note: All Docker scripts must be executed as root.