sudo apt-get install mysql-server python3 git vim python3-pip
git pull https://github.com/magnet-clip/trbot
python3 -m pip install pony pymysql python-telegram
- Create a copy of sample sql:
cp ./db_create.sample.sql ./db_create.sql
- Edit it and replace
DbName
,user
anduser_password
to desired values - Run this script:
mysql -u root -ppassword < ./db_create.sql
- Create a copy of sample config:
cp ./config.example.ini ./config.ini
- Edit it and set necessary values
vim ./config.ini
Execute nohup python3 ./main.py &
- Add cancel button for publishing workflow to any step