Skript_flags/post.sk

22 lines
1005 B
Plaintext

command /send_console:
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}
set {_key} to "https://paste.anorak01.top/%{_key}%"
send "<ins:%{_key}%>Console Link" to player
send "<url:https://paste.anorak01.top/lol>lion" to player
#loop {_this::*}:
# send loop-value to player
# if loop-value isn't "}":
# if loop-value isn't """"""":
# set {key} to "%{key}%%loop-value%"
#send {key} to player
#send {_sections::2}
#send {_key} to player
#send {_sections::2} to player
#send the body of last response to player