command rename: #2 trigger: set {_newName::*} to all files of dir path "Gods/" loop {_newName::*}: set {_newName::*} to file name of loop-value replace all "_" with "." in {_newName::*} set {_newName::*} to {_newNames::*} in lowercase rename {_newNames::*} to loop-value broadcast {_newNames::*} command sounds: #3 trigger: set {_name::*} to all files of dir path "Gods/" loop {_name::*}: set {_t::*} to "%loop-value%" set {_t::*} to {_t::*} in lowercase set {_t::1} to file name of file path "%{_t::1}%" wait 1 real second send {_t::*} in lower case replace every "_" in {_t::*} with "." add " ""custom.%{_t::*}%"": {" to line {Line1} of file path "sounds/sounds.json" add " ""sounds"": [" to line {Line2} of file path "sounds/sounds.json" add " ""custom/%{_t::*}%""" to line {Line3} of file path "sounds/sounds.json" add " ]" to line {Line4} of file path "sounds/sounds.json" add " }," to line {Line5} of file path "sounds/sounds.json" add 5 to {Line1}, {Line2}, {Line3}, {Line4} and {Line5} on script load: #1 set {Line1} to 492 set {Line2} to 493 set {Line3} to 494 set {Line4} to 495 set {Line5} to 496 #command sounds: # trigger: # file "sounds/" doesn't exist: # create file "sounds" # else: # stop