add sync to bot

This commit is contained in:
Ben Harris 2017-04-27 14:03:00 -04:00
parent c7d0aa6724
commit 0f86854366
1 changed files with 8 additions and 2 deletions

10
bot
View File

@ -51,11 +51,17 @@ case "$1" in
;;
loc)
wc src/*.php src/Commands/*.php
find src -name '*.php' | xargs wc -l
;;
cloc)
cloc src/*.php src/Commands/*.php
cloc --exclude-dir=vendor --include-lang=PHP .
;;
sync)
rsync -av ben@benharris.ch:workspace/benbot/uploaded_images/ uploaded_images/
rsync -av ben@benharris.ch:workspace/benbot/bot_data/ bot_data/
;;
restart)