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:02:47 +00:00
|
|
|
#set {_this} to {_sections::2} split at ""
|
|
|
|
loop {_sections::2}:
|
2022-09-11 19:00:44 +00:00
|
|
|
if loop-value is """"" or "}":
|
|
|
|
replace loop-value with "" in {_sections::2}
|
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
|