I'm very new to complex nightbot commands and I'm having trouble getting something to work that I know SHOULD work. What I want to do is have a !join command that will list the in-game user name based on current game being played.
example:
fortnite: fakename1
Based on cursory research, I know I should be able to have a pastebin set up with the list of games and usernames to add and use it as a JSON to look up the game and print the right username. But I cannot get it to work.
I have gotten $(twitch "{{game}}") to work to use as the input, but I haven't been able to incorporate that input into an $(eval) to look up in the pastebin.