diff --git a/README.md b/README.md index c773aff..3c9181c 100644 --- a/README.md +++ b/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 .... diff --git a/bot.sh b/bot.sh index d624d29..244f12d 100755 --- a/bot.sh +++ b/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