Add /neo command

This commit is contained in:
2021-03-22 22:17:09 +01:00
parent 4abc7015b1
commit 0ad4f7be1d

View File

@@ -104,6 +104,7 @@ help(){
Admin only commands: Admin only commands:
- /mp3 \[link\] - Download an mp3 file from YouTube. - /mp3 \[link\] - Download an mp3 file from YouTube.
- /stat - Uptime, memory, storage stats. - /stat - Uptime, memory, storage stats.
- /neo - Get system information.
- /term - Execute a command on the system. - /term - Execute a command on the system.
And a lot more to come!" And a lot more to come!"
@@ -255,6 +256,11 @@ stat(){
$(df -h / | tail -n1 | awk '{print $3}') of storage." $(df -h / | tail -n1 | awk '{print $3}') of storage."
} }
neo(){
admin
sendmsg "\`$(neofetch --stdout)\`"
}
term(){ term(){
admin admin
sendmsg "\`$(whoami)@${HOSTNAME}:${PWD}$\` \`${args[*]}\` sendmsg "\`$(whoami)@${HOSTNAME}:${PWD}$\` \`${args[*]}\`
@@ -293,6 +299,7 @@ case "$cmd" in
# Administrative # Administrative
/mp3@$bot*) mp3 ;; /mp3@$bot*) mp3 ;;
/stat@$bot) stat ;; /stat@$bot) stat ;;
/neo@$bot) neo ;;
/term@$bot*) term ;; /term@$bot*) term ;;
# Notes and such # Notes and such
!anyone*) anyone ;; !anyone*) anyone ;;