From 7dde9c4dbd3295fc7911c94430132c5c6b25c0dd Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Wed, 18 Sep 2019 07:46:52 +0100 Subject: [PATCH 1/1] Make add slightly better --- bashbot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 bashbot.sh diff --git a/bashbot.sh b/bashbot.sh old mode 100644 new mode 100755 index a47be46..f3c5676 --- a/bashbot.sh +++ b/bashbot.sh @@ -184,8 +184,9 @@ EOF if [[ $? -ne 0 ]]; then send_privmsg $channel "Couldn't parse date/time ${dataparts[0]} ${dataparts[1]}" else - send_privmsg $channel "Added reminder for ${dataparts[0]} ${dataparts[1]}: ${dataparts[@]:2}" - reminders[$timestamp]="${dataparts[@]:2}" + text="${dataparts[@]:2}" + send_privmsg $channel "Added reminder for ${dataparts[0]} ${dataparts[1]}: $text" + reminders[$timestamp]="$text" fi } -- 2.39.5