pytmbot

📦 pyTMbot Installation Script

This script provides an easy way to install, manage, and uninstall the pyTMbot either inside a Docker container or locally on your system. It also includes support for setting up a Python virtual environment for local installations.

✅ Requirements

⚙ Usage ️

Preparing the Script

Running the Script

To get the latest version of the script and run it:

sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/orenlab/pytmbot/refs/heads/master/tools/install.sh)"

🛠️ Installation Options

When running the script, you will be prompted to choose one of the following options:

  1. Docker installation: Runs pyTMbot inside a Docker container for easy management and isolation.
    • This option manages pyTMbot within a Docker environment, reducing dependency conflicts and offering process isolation.
  2. Local installation: Installs pyTMbot directly on your system.
    • The script installs Python 3.12 (if necessary), sets up a virtual environment, and installs all required dependencies.
  3. Update local installation: Updates pyTMbot to the latest version.
    • The script updates pyTMbot from source from the GitHub officially maintained repository.
  4. Uninstall pyTMbot: Completely removes the bot and its files from your system.
    • Deletes all files related to pyTMbot and cleans up the environment.

📜 Logs

All output is logged to /var/log/pytmbot_install.log. If any issues arise, check this log for detailed information.

❗ Troubleshooting

🚫 Uninstallation

Local Uninstallation

To completely remove pyTMbot from a local installation:

sudo ./install.sh

Then, choose option 4 for uninstallation.

Docker Uninstallation

To remove pyTMbot from a Docker container:

sudo docker stop pytmbot
sudo docker rm pytmbot
sudo docker rmi orenlab/pytmbot

📜 License

This script is open-source and licensed under the MIT License.