Skript_flags/post.sk

11 lines
622 B
Plaintext

command /send_console:
permission: skript.op
trigger:
send a "post" request to "https://paste.anorak01.top/documents" with the body content of file path "logs/latest.log"
wait 2 seconds
set {_resp} to the body of last response
set {_sections::*} to {_resp} split at ":"
set {_key} to last (length of {_sections::2} - 1) characters of {_sections::2}
set {_key} to first (length of {_key} - 3) characters of {_key}
send "<url:https://paste.anorak01.top>Console Link" to player
send "To show console, add %{_key}% to the end of the link above" to player