Make groupchats and the alias configurable
This commit is contained in:
parent
eb67c65e82
commit
edf4065a98
@ -15,4 +15,12 @@ if [[ ! -z "${PLUGIN_XMPP_TLS}" ]]; then
|
|||||||
SERVER_TLS=--tls
|
SERVER_TLS=--tls
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "$MESSAGE" | go-sendxmpp -u ${XMPP_JID} -p ${XMPP_PASSWORD} ${SERVER_DETAILS[@]} ${SERVER_TLS} -a 2B -c ${PLUGIN_XMPP_MUC}
|
GROUPCHAT=""
|
||||||
|
if [[ ! -z "${PLUGIN_XMPP_IS_MUC}" ]]; then
|
||||||
|
GROUPCHAT="-c"
|
||||||
|
|
||||||
|
# Make the bot nickname configurable
|
||||||
|
BOT_ALIAS=(-a ${PLUGIN_XMPP_ALIAS:-"Woodpecker CI"})
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo -e "$MESSAGE" | go-sendxmpp -u ${XMPP_JID} -p ${XMPP_PASSWORD} ${SERVER_DETAILS[@]} ${SERVER_TLS} ${BOT_ALIAS} ${GROUPCHAT} ${PLUGIN_XMPP_MUC}
|
||||||
|
Loading…
Reference in New Issue
Block a user