I’m trying to make a command which is a dad joke.
So if someone types “I am going to scream” into chat, nightbot would respond “Hi going to scream! I’m Nightbot!”
!addcom i $(eval
$(query).toLowerCase().includes(“am”) ? “Hi $(query)! I’m Nightbot” : " ")
is my command and it works but $(query) also returns “am” as part of the reply so it looks like “Hi am going to scream! I’m Nightbot!”
is there a way to not include the word “am” in there? i know $(query) returns the entire sentence but i can’t think of anything else that would work. TY in advance