Here’s a program that can detect bots
For user in Twitter:
Confirmation = random(number)
Send user message(“if you are not a bot reply with”, confirmation)
Variations can be devised but the real risk is that it also identifies inactive accounts.