Betting bots aren't necessarily illegal, but they are frowned upon, both by iGaming companies and other players.
A betting bot is a script developed to perform pre-defined actions on a betting platform without human input. These are also called gambling bots, casino bots, or value-betting software.