updated library and added sentmsgs to viewer
This commit is contained in:
parent
98bfd44924
commit
116c3c8c6e
11
bot.sh
11
bot.sh
|
@ -21,9 +21,14 @@ exec 2>"${bot_tmpdir}/error.log"
|
|||
while [ "${1}" == "start" ]; do
|
||||
grep "\S" <<< $(getupd) >/dev/null || continue
|
||||
declare -A curmsg
|
||||
# =( [msg_id]="$(getmsg_id)" [user_id]="$(getusr_id)" [chat_id]="$(getchat_id)" [text]="$(gettext)" )
|
||||
getmsg_content curmsg
|
||||
getmsg_content curmsg updates.txt
|
||||
view_content curmsg
|
||||
[ "${curmsg[text]}" == "/start" ] && sendmsg "${curmsg[chat_id]}" $(./getip.sh "${bot_tmpdir}")
|
||||
[ "${curmsg[text]}" == "/start" ] && {
|
||||
sendmsg "${curmsg[chat_id]}" $(./getip.sh "${bot_tmpdir}")
|
||||
unset curmsg
|
||||
declare -A curmsg
|
||||
getmsg_content curmsg sentmsgs.txt
|
||||
tput setaf 3; view_content curmsg; tput sgr0
|
||||
}
|
||||
unset curmsg
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue