Skript_flags/post.sk

11 lines
622 B
Plaintext
Raw Permalink Normal View History

2022-09-11 18:24:15 +00:00
command /send_console:
2022-09-11 19:39:13 +00:00
permission: skript.op
2022-09-11 18:24:15 +00:00
trigger:
2022-09-11 19:21:36 +00:00
send a "post" request to "https://paste.anorak01.top/documents" with the body content of file path "logs/latest.log"
2022-09-11 18:26:16 +00:00
wait 2 seconds
2022-09-11 18:42:27 +00:00
set {_resp} to the body of last response
2022-09-11 18:48:20 +00:00
set {_sections::*} to {_resp} split at ":"
2022-09-11 19:18:49 +00:00
set {_key} to last (length of {_sections::2} - 1) characters of {_sections::2}
2022-09-11 19:20:26 +00:00
set {_key} to first (length of {_key} - 3) characters of {_key}
2022-09-11 19:37:51 +00:00
send "<url:https://paste.anorak01.top>Console Link" to player
2022-09-11 19:39:38 +00:00
send "To show console, add %{_key}% to the end of the link above" to player