I have a command “hi”, after which nightbot says hello to the person saying hi. However, it also outputs that command when someone says hi back, so for example “hi chillhopmusic”. Is there a way to only output the command when there’s an exact match “hi” and not “hi xxxx”?
The reason for this is because you’re using $(touser). The $(touser) variable will use the user who called it, if nothing is specified. I would suggest removing the $(touser) from the command, or changing it to !hi so people couldn’t trigger it on accident.