there are different type of ai's. some of them can learn some of them can not. but even though they do very similar moves in some certain situations i don't think they are scripted. that would be lot of work in developer side.
they utilize an ai which can not learn i guess
https://www.govtech.com/computing/Understanding-the-Four-Types-of-Artificial-Intelligence.html
I would like to know if these bots are scripted, or if they have some sort of artificial intelligence.