AS (Ante-scriptum): Im Belgian and I dont speak english in my daily life, my apologise.
Yo,
I saw several topics that looked like my problem but it didn't help me at all...
I want to make a command "!but" (means "goal" in French), this command had to adapt its response to the game played (and in the case of Minecraft, to the type of mini-game with a title check ("Taupe Gun" and "Switch" in my example).
I don't think I had a problem with the code itself...
The command was to explain the rules/objectives of the actual game.
I quickly ran into the character limit of Twitch... so I used $(urlfetch) with messages on individual "pastebin.com". Then I shortened the links with "bit.ly" but I still have a long message !
So I was wondering if it was possible to "stock" the code or a part (an "if section" for example for minecraft titles) on an external site and do a little the same principle as pastebin ?
If yes, should I declare parameters or others at the beginning of the code? And what to put in the $(eval) and/or $(urlfetch) for Nightbot to understand?
Voici le code "intégral" qui est beaucoup trop long
$(evalvar r = false;var title = '$(twitch $(channel) "{{title}}")';if('$(twitch $(channel) "{{game}}")' == 'Project Winter')r = '$(urlfetch https://bit.ly/30QFOI4 )';else if('$(twitch $(channel) "{{game}}")' == 'The Hunter')r = '$(urlfetch https://bit.ly/3hCpsIY )';else if('$(twitch $(channel) "{{game}}")' == 'Minecraft')if(title.includes("switch"))r = '$(urlfetch https://bit.ly/2Ch1RgN )';else if(title.includes("taupe"))r = '$(urlfetch https://bit.ly/2Y6SN6C )';if(r)r;else'Réflechis frerot';)
And it's my more recent try, with parameters
NIGHTBOT:
