diff options
author | Julien Dessaux | 2013-11-05 14:30:18 -0800 |
---|---|---|
committer | Julien Dessaux | 2013-11-05 14:30:18 -0800 |
commit | 44ddc623e4b317a31a120fb9463d634dbb37a1dd (patch) | |
tree | b2ccc8c89db8bd3d34c8688cf737595f13c9d08f /shbrain.sh | |
parent | Added the quote module (diff) | |
parent | Added the duck generation module. (diff) | |
download | shbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.tar.gz shbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.tar.bz2 shbot-44ddc623e4b317a31a120fb9463d634dbb37a1dd.zip |
Merge pull request #1 from vivia/master
Misc bugfixes, added duck module
Diffstat (limited to '')
-rwxr-xr-x | shbrain.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,12 +8,12 @@ do LINE=${LINE[@]:0:$LEN} ### Parsing potential shcmd - if [[ $LINE =~ :([a-zA-Z]*)!.*:shcmd ]]; then + if [[ $LINE =~ :([^!]*)!.*:shcmd ]]; then EXPAND=(${LINE}) CMD=${EXPAND[4]#:} ARGS=${EXPAND[*]:5} if [ "$CMD" = "advert" ]; then - echo "PRIVMSG $ARGS :Listen to shbot, the one true Bot"'!' >&3 + echo "Listen to shbot, the one true Bot!" elif [ "$CMD" = "join" ]; then echo "JOIN $ARGS" >&3 elif [ "$CMD" = "part" ]; then @@ -22,6 +22,8 @@ do ./shquote.sh ${ARGS[*]} elif [ "$CMD" = "trains" ]; then ./shtrains.sh ${ARGS[*]} + elif [ "$CMD" = "duck" ]; then + ./shduck.sh elif [ "$CMD" = "help" ]; then ./shhelp.sh $ARGS else |