Skript_flags/post.sk

24 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-09-11 18:24:15 +00:00
command /send_console:
trigger:
2022-09-11 18:40:44 +00:00
#send content of file path "logs/latest.log" to player
2022-09-11 18:50:07 +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:54:11 +00:00
send "<url:https://paste.anorak01.top>Console Link" to player
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:13:22 +00:00
#set {_sections::2} to subtext of {_sections::2} from characters {1} to (length of {_sections::2})
2022-09-11 19:19:35 +00:00
#set {_this::*} to {_sections::2} split at ""
#send {_this::*} to player
2022-09-11 19:11:11 +00:00
set {key} to ""
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:19:35 +00:00
#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
2022-09-11 19:20:26 +00:00
send {_sections::2}
2022-09-11 19:18:49 +00:00
send {_key} to player
2022-09-11 19:19:35 +00:00
#send {_sections::2} to player
2022-09-11 18:42:27 +00:00
#send the body of last response to player