Add /neo command

This commit is contained in:
Michael De Roover 2021-03-22 22:17:09 +01:00
parent 4abc7015b1
commit 0ad4f7be1d
Signed by: vim
GPG Key ID: 075496E232CE04CB

View File

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