I am having difficulty with a command that I wrote returning “Unknown Twitch Channel”. I’m unsure what I’ve done wrong, and I would very much appreciate if anybody can help me out.
Nightbot doesn’t parse HTML. Your API should return plain text. However, what your API does is very simple and can be accomplished easily using Nightbot’s eval variable. Here is an example:
$(twitch $(eval decodeURIComponent("$(querystring)").split(" ")[0].replace(/^@+/,"")||`$(user)`) "Make sure to give {{name}} a follow at {{url}} - {{name}} is {{status}} with {{game}}")