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
1 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,7 @@
# File: processUpdates.sh
# 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[0]+="$(JsonDecode "${UPD["result,${num},message,text"]}" | sed 's|\\/|/|g')"
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[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"]}"
fi
# Caption
CAPTION="$(JsonDecode "${UPD["result,${num},message,caption"]}")"
# Location
LOCATION[LONGITUDE]="${UPD["result,${num},message,location,longitude"]}"
LOCATION[LATITUDE]="${UPD["result,${num},message,location,latitude"]}"