2022-09-11 18:24:15 +00:00
|
|
|
command /send_console:
|
|
|
|
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:26:47 +00:00
|
|
|
send "<url:https://paste.anorak01.top/%{_key}%/>Console Link" to player
|
2022-09-11 19:21:36 +00:00
|
|
|
|
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:22:20 +00:00
|
|
|
#send {_sections::2}
|
|
|
|
#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
|