12 lines
304 B
Bash
Executable File
12 lines
304 B
Bash
Executable File
# Use this script to start or restart a Telegram bog instance
|
|
|
|
[[ -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
|