Sources of Telegram bot for cryptopotato chat. https://t.me/devpotato_bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
244 B

#!/usr/bin/env bash
# Send SIGTERM to all running processes on exit
trap "/bin/kill -s TERM -1" SIGTERM SIGQUIT
case "${1}" in
'')
source /opt/bot/venv/bin/activate
python -m devpotato_bot
;;
*) exec ${@} ;;
esac