Hi guys!
So I'm trying to make a more funny !ban command on my chat.
Right now I have a very simple one:
$(touser) was banned!
When someone types !ban Ana, the bot just replies "Ana was banned!"
But I was thinking of a more interactive one... A command that would say something like "you cannot ban John154" if the $(touser) is John154 and would know if you say your own name/user.
It's just a funny command that would have 3 different answers (I guess).
If you say your name the answer would be "you just banned yourself!"
if you say John154's name (a moderator of my chat on Twitch) the bot would say that "you cannot ban John154!" and if it's any other user the message would be "user was banned!" (like the simple one I have now).
I found a similar command... That I tought I could edit and maybe could work, but I couldn't edit enough to work the way I wanted. It was something like:
!hug ...... {Wow! ${u} hugged himself.;}else if(a.toLowerCase()==nightbot)....{@${u} Thanks for hugging me!;}else if(!a){Wow! ${u} hugged everyone!;}else{Wow! ${u} hugged ${a}!;}))
If anyone could help me, I would appreciate.
Thank you!