summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivia Nikolaidou2013-11-07 14:23:21 +0100
committerVivia Nikolaidou2013-11-07 14:24:30 +0100
commitb699c4455ecc93a4cc4d5a36ef1eb67278a3e1b8 (patch)
treee6030d476de8e8051748e782edb7bc2408406192
parentAdded the duck generation module. (diff)
downloadshbot-b699c4455ecc93a4cc4d5a36ef1eb67278a3e1b8.tar.gz
shbot-b699c4455ecc93a4cc4d5a36ef1eb67278a3e1b8.tar.bz2
shbot-b699c4455ecc93a4cc4d5a36ef1eb67278a3e1b8.zip
Added timestamp to author on quotes module.
Diffstat (limited to '')
-rwxr-xr-xshquote.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shquote.sh b/shquote.sh
index 82076fb..bd53abb 100755
--- a/shquote.sh
+++ b/shquote.sh
@@ -5,8 +5,9 @@ if [ -n "$2" ]; then
OWNER=$1
LEN=`expr ${#ARGS[*]}`
QUOTE=${ARGS[@]:1:$LEN}
+ TIMESTAMP=`date +"%Y-%m-%d %H:%M UTC %z"`
- echo "${OWNER}" >> shquote.txt
+ echo "${OWNER} ${TIMESTAMP}" >> shquote.txt
echo "${QUOTE}" >> shquote.txt
#elif [ -n "$1" ]; then
# TODO : quote someone