You could templatize it so it can work with an infinite number of channels.
Whenever your chat text box changes, check if the first character is a ‘/’, the last character is ’ ’ and the text in-between is the same as a channel.
You could templatize it so it can work with an infinite number of channels.
Whenever your chat text box changes, check if the first character is a ‘/’, the last character is ’ ’ and the text in-between is the same as a channel.