From 9958b5b5e13f3d6c837076287473a32d9315759f Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 14 Feb 2021 10:46:26 +0100 Subject: [PATCH] fix dice cheating in example :-) --- mycommands.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycommands.sh b/mycommands.sh index e7d34bd..0736616 100644 --- a/mycommands.sh +++ b/mycommands.sh @@ -13,7 +13,7 @@ # License: WTFPLv2 http://www.wtfpl.net/txt/copying/ # Author: KayM (gnadelwartz), kay@rrr.de # -#### $$VERSION$$ v1.45-dev-20-g2f4ef69 +#### $$VERSION$$ v1.45-dev-27-g77ffbab ####################################################### # shellcheck disable=SC1117 @@ -127,7 +127,7 @@ else '/_dice_re'*) # dice from user received sleep 5 local gameresult="*Congratulation ${USER[FIRST_NAME]} ${USER[LAST_NAME]}* you got *${MESSAGE[RESULT]} Points*." - send_markdownv2_message "${CHAT[ID]}" "${gameresult}" + [ -z "${FORWARD[UID]}" ] && send_markdownv2_message "${CHAT[ID]}" "${gameresult}" ;; '/game'*) # send random dice, edit list to fit your needs send_dice "${CHAT[ID]}" ":$(printf "slot_machine\ngame_die\ndart\nbasketball\nsoccer\nslot_machine"|sort -R|shuf -n 1shuf -n 1):"