git clone https://github.com/vsecoder/TomatoClanBot.git
cd TomatoClanBot
python3 -m venv tomat
source tomat/bin/activate
pip install -r requirements.txt
cp example.toml config.toml
nano config.toml # <= edit config (token, admins, etc.)
python3 -m app
git clone https://github.com/vsecoder/TomatoClanBot.git
cd TomatoClanBot
nano config.toml # <= edit config (token, admins, etc.)
python3 -m venv tomat
source tomat/bin/activate
pip3 install -r requirements.txt
sudo nano /etc/systemd/system/tomato.service
Enter this:
Description=TomatoClanBot
[Service]
WorkingDirectory=/home/<USERNAME>/TomatoClanBot
nvironment=PYTHONPATH=/home/<USERNAME>/TomatoClanBot
ExecStart=/home/<USERNAME>/TomatoClanBot/tomat/bin/python3 -m app
Type=simple
Restart=always
RestartSec=1
User=<USERNAME>
[Install]
WantedBy=multi-user.target
sudo systemctl enable tomato
sudo systemctl start tomato # <= start bot
sudo systemctl status tomato # <= get status
sudo systemctl start tomato # <= stop bot