10 lines
241 B
Bash
10 lines
241 B
Bash
|
[[ -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
|