multiple session

This commit is contained in:
vnguyen
2013-07-20 00:58:07 -04:00
parent 322118f81d
commit 792710fa78
8 changed files with 25 additions and 12 deletions

2
bot.sh
View File

@@ -42,7 +42,7 @@ do
from=$who
fi
com=$(echo "$will" | grep -Eio "[a-z]*" | head -n1 | tail -n1)
if [ -z "$(ls modules/ | grep -i -- "$com.sh")" ]
if [ -z "$(ls modules/*.sh | grep -i -- "$com.sh")" ]
then
./modules/help.sh $who $from >> $input
continue