From 43cab461f8d1dc1ace0c69d55f25329c63376aae Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Wed, 17 Mar 2021 20:02:17 +0100 Subject: [PATCH] modules: sendMessage: send_dice add bowling --- bin/send_dice.sh | 6 +++--- modules/sendMessage.sh | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/send_dice.sh b/bin/send_dice.sh index d71dae8..28c1d47 100755 --- a/bin/send_dice.sh +++ b/bin/send_dice.sh @@ -9,8 +9,8 @@ USAGE='send_dice.sh [-h|--help] "CHAT[ID]" "emoji" [debug]' # DESCRIPTION: send an animated emoji (dice) to given chat # # OPTIONS: CHAT[ID] - ID number of CHAT or BOTADMIN to send to yourself -# emoji - must be one of: “🎲”, “🎯”, “🏀”, “⚽”, or “🎰” -# ":game_die:" ":dart:" ":basketball:" ":soccer:" :slot_machine:" +# emoji - must be one of: “🎲”, “🎯”, “🏀”, “⚽” “🎰” "🎳" +# :game_die: :dart: :basketball: :soccer: :slot_machine: :bowling: # # -h - display short help # --help - this help @@ -21,7 +21,7 @@ USAGE='send_dice.sh [-h|--help] "CHAT[ID]" "emoji" [debug]' # AUTHOR: KayM (gnadelwartz), kay@rrr.de # CREATED: 07.02.2021 18:45 # -#### $$VERSION$$ v1.5-0-g8adca9b +#### $$VERSION$$ v1.51-dev-1-g99950e6 #=============================================================================== #### diff --git a/modules/sendMessage.sh b/modules/sendMessage.sh index b6e2df3..913cdb1 100644 --- a/modules/sendMessage.sh +++ b/modules/sendMessage.sh @@ -6,7 +6,7 @@ # Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying) # # shellcheck disable=SC1117 -#### $$VERSION$$ v1.5-0-g8adca9b +#### $$VERSION$$ v1.51-dev-1-g99950e6 # will be automatically sourced from bashbot @@ -333,7 +333,7 @@ send_action() { [ -n "${BOTSENT[ERROR]}" ] && processError "${FUNCNAME[0]}" "${BOTSENT[ERROR]}" "$1" "" "${BOTSENT[DESCRIPTION]}" "$2" } -# $1 chat $2 emoji “🎲”, “🎯”, “🏀”, “⚽”, “🎰" +# $1 chat $2 emoji “🎲”, “🎯”, “🏀”, “⚽”, “🎰" "🎳" # code: "\ud83c\udfb2" "\ud83c\udfaf" "\ud83c\udfc0" "\u26bd" "\ud83c\udfb0" # text: ":game_die:" ":dart:" ":basketball:" ":soccer:" :slot_machine:" # $3 reply_to_id @@ -346,6 +346,7 @@ send_dice() { *🏀*|*basket*|*'dfc0'*|*'DFC0'*) emoji='\ud83c\udfc0' ;; *⚽*|*soccer*|*'26bd'*|*'26BD'*) emoji='\u26bd' ;; *🎰*|*slot* |*'dfb0'*|*'DFB0'*) emoji='\ud83c\udfb0' ;; + *🎳*|*bowl* |*'dfb3'*|*'DFB3'*) emoji='\ud83c\udfb3' ;; esac sendJson "$1" '"emoji": "'"${emoji}"'"'"${reply}" "${URL}/sendDice" if [ "${BOTSENT[OK]}" = "true" ]; then