Skip to content

Jexelus/NexaevTG_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NexaevTG_bot

Install

  • Copy from git
    git clone https://github.com/Jexelus/NexaevTG_bot
  • Create virtual env Linux
    cd NexaevTG_bot
    python3 -m venv env
    pip install -r req.txt
  • Create virtual env Windows
    cd NexaevTG_bot
    python -m venv env
    pip install -r req.txt

Start

  • Startup Linux
    env/bin/python bot.py
  • Startup Windows
    env/Scripts/python bot.py
  • Additional information

    Linux startup with resistant to terminal closure (like ssh disconnect)

    env/Scripts/python bot.py &
    disown %1 #(jobs -l to check a worker not in session)
    #ps aux to check worker

    Linux demon script

    [Unit]
    Description=TGN_bot
    After=network.target
    [Service]
    Type=simple
    WorkingDirectory=<Path to rep>
    ExecStart=<Path to env/bin/python> <Path to bot.py>
    Restart=on-failure
    RestartSec=5s
    [Install]
    WantedBy=multi-user.target

    Start demon command

    sudo systemd reload
    sudo systemd start <name demon>
    #check status sudo systemd status <name demon>

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages