Command to replace a word with whatever the user pleases?

Hello! I was wondering what the string would be for a command that replaces a word within a block of text? Here is an example:

!(command name) (word)
Nightbot: Have you heard about (word) last night? (word) was pretty cool wasn’t it? :stuck_out_tongue:

And it would put any word the user wanted to put. So say that the command was “!blockof noodles” then nightbot would output a funny line of text that never changes but the word designated so wherever “noodles” would be put in, you could say cheese and it would replace noodles, if you get what I am saying.

Any help is appreciated! Thanks.

Check out the $(touser) variable. However this won’t permanently change the command response.

Thanks for the response! I’ll try it out and give you an update on if it works or not.

All works well! Thanks again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.