Hi or hello Twitch command setting question!

This command will only produce a response if the user’s message is “hi” or if it starts with “hi” and also mentions the channel name.

!addcom hi $(eval d=decodeURIComponent;RegExp(`(\\b|@)${d("$(querystring $(channel))").replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}\\b|^\\s*$`,"i").test(d("$(querystring)"))?`Hey ${d("$(querystring $(user))")} hope you're having a good time!`:" ")
1 Like