modules: chatMember: fix getChatMember URL

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-01-16 10:10:16 +01:00
parent d269f9816d
commit a545bf1d8e
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
#
# tested on: ubuntu, opensuse, debian
#
#### $$VERSION$$ v1.25-dev-51-gb2eecc5
#### $$VERSION$$ v1.30-dev-28-gd269f98
# shellcheck disable=SC2009
# shellcheck disable=SC2181
@ -60,7 +60,7 @@ case "$1" in
'status')
ps -f -u "${runas}" | grep "${name}" | grep -qF "bashbot.sh startbot"
if [ "$?" = "0" ]; then
printf "bashbot (%s) is runningi\n" "${name}"
printf "bashbot (%s) is running\n" "${name}"
RETVAL=0
else
printf "bashbot (%s) is stopped\n" "${name}"

View File

@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v1.30-dev-13-g29fa5cf
#### $$VERSION$$ v1.30-dev-28-gd269f98
# will be automatically sourced from bashbot
@ -74,7 +74,7 @@ leave_chat() {
# usage: status="$(get_chat_member_status "chat" "user")"
# $1 chat # $2 user
get_chat_member_status() {
sendJson "$1" '"user_id":'"$2"'' "${URL}/kickChatMember"
sendJson "$1" '"user_id":'"$2"'' "${URL}/getChatMember"
# shellcheck disable=SC2154
JsonGetString '"result","status"' <<< "${res}"
}