options: delay: 1 every {@delay} minutes: loop {youtube::channels::*}: set {_res} to text from "https://mchook.ct8.pl/yt.php?channel=UCZeW6N-Fo6N0sWkauYQsMhw" copy json {_res} to {_v::*} loop {_v::*}: if {youtube::channels::%loop-value-1%::videos::*} contain loop-value-2: send "nic tu nie ma" to console else: broadcast "YouTuber &c&l%{youtube::channels::%loop-value-1%::name}% &fwrzuciƂ nowy film &ehttps://www.youtube.com/watch?v=%loop-value-2%&f." add loop-value-2 to {youtube::channels::%loop-value-1%::videos::*} command /channel [] [] []: trigger: if arg 1 is "add": if arg 2 is set: if arg 3 is set: if {youtube::channels::*} contains arg 2: send "nie" else: add arg 2 to {youtube::channels::*} set {youtube::channels::%arg 2%::name} to arg 3 send "tak" else: send "nie" else: send "nie" else if arg 1 is "remove": if arg 2 is set: if {youtube::channels::*} contains arg 2: delete {youtube::channels::%arg 2%::*} remove arg 2 from {youtube::channels::*} send "tak" else: send "nie" else: send "nie" else if arg 1 is "list": send "%{youtube::channels::*}%"