This repository has been archived on 2023-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-03 01:32:28 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
auto() {
|
|
|
|
echo "*Je suis l'aide auto*"
|
|
|
|
cd src
|
|
|
|
|
|
|
|
#cmds=$(grep "^bot\." *.js -A3 | grep -E "\['|aide = ")
|
|
|
|
cmds=$(grep "\['" *.js | awk -F "[" '{ print $2 }' | awk -F "]" '{ print $1 }')
|
|
|
|
IFS=$'\n'
|
|
|
|
for i in $cmds; do
|
|
|
|
echo "$i" | awk -F "'" '{ print $2 }'
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
text() {
|
|
|
|
cat src/inc/aide.txt
|
|
|
|
}
|
|
|
|
|
2020-07-13 14:43:54 +02:00
|
|
|
[[ $(type $@ | grep "est une fonction") ]] && $@ || echo "Veuillez préciser votre commande"
|
2020-05-03 01:32:28 +02:00
|
|
|
|
|
|
|
exit 0
|