made it modular! modules/*.sh will be ran if it exists and called
This commit is contained in:
3
modules/help.sh
Executable file
3
modules/help.sh
Executable 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
1
modules/ping.sh
Executable file
@ -0,0 +1 @@
|
||||
echo "PRIVMSG $2 :$1: pong"
|
1
modules/test.sh
Executable file
1
modules/test.sh
Executable file
@ -0,0 +1 @@
|
||||
echo "PRIVMSG $2 :$1: The test was successful"
|
Reference in New Issue
Block a user