Hi, I wanted to know if there is a way to make a !slap command that if used it alone shows a random user, but if someone is tagged show the $(touser)
Sorry if there is something misspelled, I don't know much English, I hope it is understood. Thanks.
Random user and touser variable
1 reply
Hey @Agile Bison!
There already are a couple topics covering this type of command already, please use the search bar before opening a new topic, in the meantime here's a solution:
!addcom !slap $(eval t='$(touser)'!='$(user)'?'$(touser)':'$(urlfetch https://2g.be/twitch/randomviewer.php?channel=$(channel))'; '$(user) slaps '+t)