diff --git a/bot.sh b/bot.sh index 1ee2fd9..878f6d1 100755 --- a/bot.sh +++ b/bot.sh @@ -54,7 +54,7 @@ while [ "${1}" == "start" ]; do editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "checking again..." ps -w -w -U steam -o args= | grep "hlds_linux" >/dev/null \ && __cstrike_status="online" || __cstrike_status="offline" - editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "${__ip}%0Aterraria(${__terraria_status}): port 7777%0Afactorio(${__factorio_status}: port 34197%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}" + editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "${__ip}%0Aterraria(${__terraria_status}): port 7777%0Afactorio(${__factorio_status}): port 34197%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}" unset curmsg declare -A curmsg getmsg_content curmsg sentmsgs.txt @@ -71,7 +71,7 @@ while [ "${1}" == "start" ]; do editmsg "${curmsg[chat_id]}" "${curmsg[msg_id]}" "checking again..." ps -w -w -U steam -o args= | grep "hlds_linux" >/dev/null \ && __cstrike_status="online" || __cstrike_status="offline" - sendmsg "${curmsg[chat_id]}" "${__ip}%0Aterraria(${__terraria_status}): port 7777%0Afactorio(${__factorio_status}: port 34197%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}" + sendmsg "${curmsg[chat_id]}" "${__ip}%0Aterraria(${__terraria_status}): port 7777%0Afactorio(${__factorio_status}): port 34197%0Asyncplay(${__syncplay_status}): port 60000%0Acstrike(${__cstrike_status}): port 64000" "${inline_kbd}" unset curmsg declare -A curmsg getmsg_content curmsg sentmsgs.txt @@ -79,5 +79,5 @@ while [ "${1}" == "start" ]; do } } done - unset curmsg __ip __syncplay_status __cstrike_status + unset curmsg __ip __terraria_status __factorio_status __syncplay_status __cstrike_status done