- Python 3
- pip3 install base58
- pip3 install requests
- pip3 install tronapi
- pip3 install python-telegram-bot
- pip3 install lxml
Bot Settings are in the file tronapi_bot/constants.py:
BOT_NAME = ""
BOT_TOKEN = ""
> python tron_bot.py
Installing and running the bot on the server
Upload all project files to server Example: /home/iexbase/tron_bot
Create a Systemd file for TronBot:
sudo nano /etc/systemd/system/tronbot.service
[Unit]
Description=TronBot service
After=network.target
[Service]
Type=idle
WorkingDirectory=/home/iexbase/tron_bot
User=root
Group=root
ExecStart=/usr/bin/python3.6 tron_bot.py
[Install]
WantedBy=multi-user.target
sudo systemctl start tronbot
sudo systemctl enable tronbot
check run status
sudo systemctl status tronbot
- Star and/or fork this repository
- TRX: TRWBqiqoFZysoAeyR1J35ibuyc8EvhUAoY