Your bot could be anonymous, the only thing you'd be forced to reveal is that it was a bot.
just a [bot] marker of some kind next to the tweets that were posted by a bot. That's it. Still anonymous.
I could tell you this comment was posted by a bot, that would reveal nothing about me.