2020-09-04 02:33:43 +02:00
|
|
|
# Use this script to start or restart a Telegram bog instance
|
|
|
|
|
2020-09-04 01:46:26 +02:00
|
|
|
[[ -f .env ]] && source .env
|
|
|
|
export TELEGRAM_INTERVAL=3500
|
|
|
|
export TOOL="telegram"
|
|
|
|
|
|
|
|
if [[ $(pm2 pid tbog) ]]; then
|
|
|
|
pm2 restart tbog
|
|
|
|
else
|
|
|
|
pm2 start node_modules/.bin/coffee -n tbog -- node_modules/.bin/hubot --name bog -a telegram
|
|
|
|
fi
|