made it modular! modules/*.sh will be ran if it exists and called

This commit is contained in:
Dimitar Dimitrov
2013-07-17 21:06:37 +01:00
parent 943c5b5e3f
commit 121a1389fd
4 changed files with 33 additions and 4 deletions

3
modules/help.sh Executable file
View File

@ -0,0 +1,3 @@
echo "PRIVMSG $2 :$1: The available modules I have are:"
output=$(ls modules/ | sed "s/.sh//")
echo "PRIVMSG $2 :$1: "$output

1
modules/ping.sh Executable file
View File

@ -0,0 +1 @@
echo "PRIVMSG $2 :$1: pong"

1
modules/test.sh Executable file
View File

@ -0,0 +1 @@
echo "PRIVMSG $2 :$1: The test was successful"