From: Brett Parker Date: Wed, 18 Sep 2019 06:46:52 +0000 (+0100) Subject: Make add slightly better X-Git-Url: https://git.sommitrealweird.co.uk/bashbot.git/commitdiff_plain/7dde9c4dbd3295fc7911c94430132c5c6b25c0dd?ds=sidebyside Make add slightly better --- 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 }