Protip: You can use more than one line in a switch check.
What are you directing that at? I reduced the code by making responses variables instead of full commands. As for the turning on and off, I wasn't able to conceive just how to implement that. My code has activations in a different script not interacting with chat, so it wouldn't get included in an on off check. Can't really explain, but you can show what you think would work.
That's not even what I'd consider a "bot".
No, that's just reads one phrase and gives out another.
No capacity for learning at all.
e.g. spam
Sorry to tell you, but according to everyone I meet in BL, you're wrong. Any chat script is apparently a "bot" to them. I could quote case in point from my chatlogger, but I think you've witnessed this yourself.