A lot of people seems not ot understand what "illegal" means.

By no means a bot can be illegal, and that had nothing to do with SE having the right of shuting down you account for using one. SE has the right to shut down you account for no reason anyway.