fixed mac bug
This commit is contained in:
parent
15261c173d
commit
e78be1ccdc
2
bot.sh
2
bot.sh
@ -41,7 +41,7 @@ do
|
|||||||
will=$(echo "$res" | perl -pe "s/.*$nick :(.*)/\1/")
|
will=$(echo "$res" | perl -pe "s/.*$nick :(.*)/\1/")
|
||||||
from=$who
|
from=$who
|
||||||
fi
|
fi
|
||||||
com=$(echo "$will" | grep -Eio "[a-z]*" | head -n1 | tail -n1)
|
com=$(echo "$will" | cut -d " " -f 2)
|
||||||
if [ -z "$(ls modules/ | grep -i -- "$com.sh")" ]
|
if [ -z "$(ls modules/ | grep -i -- "$com.sh")" ]
|
||||||
then
|
then
|
||||||
./modules/help.sh $who $from >> $input
|
./modules/help.sh $who $from >> $input
|
||||||
|
Loading…
x
Reference in New Issue
Block a user