whenever i try to do this skript which downloads a certain file using SkUtilities
command /download <text>:
trigger:
set {url} to arg-1
set {file} to "plugins/Skript/scripts/example.sk"
skutil download file from "%{url}%" to file "plugins/Skript/scripts"
if file {file} exists:
send "File downloaded successfully."
else:
send "Failed to download file."
it either gives me the error "File already exists" or "Site might be down" in the console even tho the site is working perfectly and the file doesnt exist
command /download <text>:
trigger:
set {url} to arg-1
set {file} to "plugins/Skript/scripts/example.sk"
skutil download file from "%{url}%" to file "plugins/Skript/scripts"
if file {file} exists:
send "File downloaded successfully."
else:
send "Failed to download file."
it either gives me the error "File already exists" or "Site might be down" in the console even tho the site is working perfectly and the file doesnt exist