modules: proseccUpdates: get sent dice

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2021-02-09 07:31:12 +01:00
parent c58fa22b7a
commit a7d85e352c

View File

@ -4,7 +4,7 @@
# File: processUpdates.sh # File: processUpdates.sh
# Note: DO NOT EDIT! this file will be overwritten on update # Note: DO NOT EDIT! this file will be overwritten on update
# #
#### $$VERSION$$ v1.41-0-gad1b91f #### $$VERSION$$ v1.45-dev-16-gc58fa22
################################################################## ##################################################################
############## ##############
@ -148,6 +148,10 @@ process_message() {
# Message # Message
MESSAGE[0]+="$(JsonDecode "${UPD["result,${num},message,text"]}" | sed 's|\\/|/|g')" MESSAGE[0]+="$(JsonDecode "${UPD["result,${num},message,text"]}" | sed 's|\\/|/|g')"
MESSAGE[ID]="${UPD["result,${num},message,message_id"]}" MESSAGE[ID]="${UPD["result,${num},message,message_id"]}"
MESSAGE[DICE]="${UPD["result,${num},message,dice,emoji"]}"
MESSAGE[RESULT]="${UPD["result,${num},message,dice,value"]}"
MESSAGE[CAPTION]="$(JsonDecode "${UPD["result,${num},message,caption"]}")"
CAPTION="${MESSAGE[CAPTION]}" # backward compatibility
# Chat ID is now parsed when update is received # Chat ID is now parsed when update is received
CHAT[LAST_NAME]="$(JsonDecode "${UPD["result,${num},message,chat,last_name"]}")" CHAT[LAST_NAME]="$(JsonDecode "${UPD["result,${num},message,chat,last_name"]}")"
@ -212,9 +216,6 @@ process_message() {
VENUE[FOURSQUARE]="${UPD["result,${num},message,venue,foursquare_id"]}" VENUE[FOURSQUARE]="${UPD["result,${num},message,venue,foursquare_id"]}"
fi fi
# Caption
CAPTION="$(JsonDecode "${UPD["result,${num},message,caption"]}")"
# Location # Location
LOCATION[LONGITUDE]="${UPD["result,${num},message,location,longitude"]}" LOCATION[LONGITUDE]="${UPD["result,${num},message,location,longitude"]}"
LOCATION[LATITUDE]="${UPD["result,${num},message,location,latitude"]}" LOCATION[LATITUDE]="${UPD["result,${num},message,location,latitude"]}"