fixed small bug updated readme
This commit is contained in:
parent
3c3fbdc830
commit
4eda44a669
10
README.md
10
README.md
@ -3,11 +3,7 @@ bash-irc-bot
|
||||
|
||||
A simple, modular IRC bot written in bash
|
||||
|
||||
any .sh script in modules/ will be executed with all arguments when called like so:
|
||||
throw "modules" into /modules/module-name/module-name.sh
|
||||
and they will be loaded up during runtime.
|
||||
|
||||
botnickname: test optional
|
||||
|
||||
will run test.sh with the arguments
|
||||
$1 = your nick
|
||||
$2 = from where it came (room/channel)
|
||||
$3-X the rest of the args
|
||||
call modules with botname: test arg1 arg2 ....
|
||||
|
2
bot.sh
2
bot.sh
@ -47,7 +47,7 @@ do
|
||||
com=$(echo "$will" | cut -d " " -f1)
|
||||
if [ -z "$(ls modules/ | grep -i -- "$com")" ]
|
||||
then
|
||||
./modules/help.sh $who $from >> $input
|
||||
./modules/help/help.sh $who $from >> $input
|
||||
continue
|
||||
fi
|
||||
./modules/$com/$com.sh $who $from $(echo "$will" | cut -d " " -f2-99) >> $input
|
||||
|
Loading…
Reference in New Issue
Block a user