summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2013-11-10 09:58:07 +0100
committerJulien Dessaux2013-11-10 09:58:07 +0100
commit1e2d74064e26e327935f4bb38e575807aeeb7570 (patch)
tree689bf64283971abd3783a18a3b909088ffe93e64
parentAdded help message for duck command (diff)
parentAdded timestamp to author on quotes module. (diff)
downloadshbot-1e2d74064e26e327935f4bb38e575807aeeb7570.tar.gz
shbot-1e2d74064e26e327935f4bb38e575807aeeb7570.tar.bz2
shbot-1e2d74064e26e327935f4bb38e575807aeeb7570.zip
Merge pull request #2 from vivia/masterHEADmaster
Added timestamp to author on quotes module.
-rw-r--r--shquote.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/shquote.sh b/shquote.sh
index 82076fb..bd53abb 100644
--- 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