fixed process name for cstrike server
This commit is contained in:
parent
4d01afe22e
commit
791ed382db
2
bot.sh
2
bot.sh
|
@ -42,7 +42,7 @@ while [ "${1}" == "start" ]; do
|
||||||
ps -w -w -U syncplay -o args= | grep "syncplay-server" >/dev/null \
|
ps -w -w -U syncplay -o args= | grep "syncplay-server" >/dev/null \
|
||||||
&& __syncplay_status="online" || __syncplay_status="offline"
|
&& __syncplay_status="online" || __syncplay_status="offline"
|
||||||
editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "checking again..."
|
editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "checking again..."
|
||||||
ps -w -w -U steam -o args= | grep "hlds_run" >/dev/null \
|
ps -w -w -U steam -o args= | grep "hlds_linux" >/dev/null \
|
||||||
&& __cstrike_status="online" || __cstrike_status="offline"
|
&& __cstrike_status="online" || __cstrike_status="offline"
|
||||||
editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "${__ip}%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}"
|
editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "${__ip}%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}"
|
||||||
unset curmsg
|
unset curmsg
|
||||||
|
|
Loading…
Reference in New Issue