Personally, I would rather rely on self control and not have my card forcefully decline transactions. But maybe that's just me!
A traditional bank can't cater to every persons individual needs/wants.
It would be nice to have somewhere these scripts are discoverable so you can use/tweak other users ideas.
Something like this API may make basic income more feasible if we could ensure that people aren't able to blow their budget and go hungry even with basic income.