I love the way custom variables work, however there are times that I’d like the bot to reply with multiple chat messages.
Since Twitch does not allow linebreaks or padding in chat messages, very long messages can look awful. To get around this you could split the return value from the custom variable into multiple message that get sent to chat.
Example: I want to return to chat lots of info on a particular player (name, birthday, win record, etc.)
Current custom variable would return
return "DongRaeGu (Z) NAME: 박수호 ROMANIZED NAME: Park Soo Ho BIRTHDAY: 1991-06-03 EARNINGS: $261879"
This would appear in chat just as it does in the return value.
BotName: DongRaeGu (Z) NAME: 박수호 ROMANIZED NAME: Park Soo Ho BIRTHDAY: 1991-06-03 EARNINGS: $261879
If the custom variable module was able to detect new lines in the return value (\n or any delimiter), it would split the string into multiple messages and send each one.
return "DongRaeGu (Z)\nNAME: 박수호\nROMANIZED NAME: Park Soo Ho\nBIRTHDAY: 1991-06-03\nEARNINGS: $261879"
This would appear in chat as:
BotName: DongRaeGu (Z)
BotName: NAME: 박수호
BotName: ROMANIZED NAME: Park Soo Ho
BotName: BIRTHDAY: 1991-06-03
BotName: EARNINGS: $261879