Add /dump command
This commit is contained in:
@@ -300,6 +300,12 @@ sh(){
|
||||
sendmsg "<code>$(whoami)@${HOSTNAME}:${PWD}$</code> <code>${args[*]}</code>
|
||||
<code>$(echo ${args[*]} | bash - 2>&1)</code>"
|
||||
}
|
||||
dump(){
|
||||
admin
|
||||
out=/tmp/$RANDOM.json
|
||||
jq <<< "$input" > $out
|
||||
sendmsg "Event saved to $out."
|
||||
}
|
||||
|
||||
# Notes and such
|
||||
anyone(){
|
||||
@@ -344,6 +350,7 @@ case "$cmd" in
|
||||
/sys@$bot) sys ;;
|
||||
/neo@$bot) neo ;;
|
||||
/sh@$bot*) sh ;;
|
||||
/dump@$bot*) dump ;;
|
||||
# Notes and such
|
||||
!anyone*) anyone ;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user