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:07:59 +00:00
|
|
|
set {_sections::2} to subtext of {_sections::2} from characters {1} to (length of {_sections::2})
|
2022-09-11 19:03:52 +00:00
|
|
|
set {_this::*} to {_sections::2} split at ""
|
|
|
|
loop {_this::*}:
|
2022-09-11 19:10:21 +00:00
|
|
|
if loop-value isn't "}":
|
|
|
|
#replace loop-value with "" in {_sections::2}
|
|
|
|
set {_key} to "%{_key}%loop-value"
|
|
|
|
#add loop-value to {_key}
|
2022-09-11 19:03:52 +00:00
|
|
|
send {_key} to player
|
2022-09-11 18:52:16 +00:00
|
|
|
send {_sections::2} to player
|
2022-09-11 18:42:27 +00:00
|
|
|
#send the body of last response to player
|