Is this idea of command possible?

Hi everyone. I have a command idea but idk if it’s possible to do it, so here’s the idea: I wanna do a !hit command that hits a random viewer (e.g. " [user] hits [random viewer] with a chancla"), but if that random viewer is Nightbot, the bot will give you a timeout of 10 seconds and with a response that says “You think you can hit me fool? hehe”. Is that possible at all? If yes, can someone please help me with that?
Thanks!

PS: the final response is not necessary to have if it’s too much ^^°

You wouldn’t be able to use Nightbot to build this, since Nightbot will not allow you to trigger bans from commands. We restrict that to prevent possible exploits from occurring in messages.

Oh ok, thanks for the response. I’ll have to find a way to make it answer back without a trigger of a timeout.