Simple Wake-on-Lan Telegram bot
See
/help
for a list of available commands
- python 3
- python-telegram-bot
- Virtualenv (recommended)
Clone the repository
# mkdir -p /opt/wolbot
# chown -R user:group /opt/wolbot
$ git clone url /opt/wolbot
$ cd /opt/wolbot
Edit the config with your favorite editor (aka vim
)
$ cp config.example.py config.py
$ vim config.py
Set up the Python environment
$ virtualenv wolbot_venv
$ source wolbot_venv/bin/activate
(venv)$ pip install -r requirements.txt
Start the application
(venv)$ python3 wolbot.py
The easiest way is to add the launcher script to /etc/rc.local
.
/opt/wolbot/wolbot-launcher.sh