mirror of https://gitlab.com/bashrc2/epicyon
Emoji reaction notifications
parent
0a5657fba4
commit
cd5c7315ce
|
@ -209,14 +209,14 @@ function notifications {
|
|||
if [[ "$epicyonLikeFileContent" == *':'* ]]; then
|
||||
epicyonLikeMessage="Epicyon: $epicyonLikeFileContent"
|
||||
fi
|
||||
sendNotification "$USERNAME" "Epicyon" "$epicyonLikeMessage"
|
||||
sendNotification "$USERNAME" "Epicyon" "$epicyonLikeMessage"
|
||||
echo "##sent##" > "$epicyonLikeFile"
|
||||
chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonLikeFile"
|
||||
fi
|
||||
fi
|
||||
|
||||
# send notifications for emoji reactions to XMPP/email users
|
||||
epicyonLikeFile="$epicyonDir/.newReaction"
|
||||
epicyonReactionFile="$epicyonDir/.newReaction"
|
||||
if [ -f "$epicyonReactionFile" ]; then
|
||||
if ! grep -q "##sent##" "$epicyonReactionFile"; then
|
||||
epicyonReactionMessage=$(notification_translate_text 'Reaction by')
|
||||
|
@ -224,7 +224,7 @@ function notifications {
|
|||
if [[ "$epicyonReactionFileContent" == *':'* ]]; then
|
||||
epicyonReactionMessage="Epicyon: $epicyonReactionFileContent"
|
||||
fi
|
||||
sendNotification "$USERNAME" "Epicyon" "$epicyonReactionMessage"
|
||||
sendNotification "$USERNAME" "Epicyon" "$epicyonReactionMessage"
|
||||
echo "##sent##" > "$epicyonReactionFile"
|
||||
chown ${PROJECT_NAME}:${PROJECT_NAME} "$epicyonReactionFile"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue