How to add pastebin to sensitivity calculator command

Hey @mysticpurple!

If you had put a little bit more care to your post I would have answered you sooner, I’ve postponed reading you just because of how it looks, yet the solution to your problem is simple.

I even have a better solution than what you’re currently thinking of, what about a command that automatically set the correct value for your m_yaw variable depending on the game you’re playing, no need to specify it when you call the command? So basically you keep using the command like you already do, no need to change your habits, and less typing.

Okay, so, thanks to the $(twitch) variable we can fetch the current game you’re playing, next we can store all the values for your m_yaw variable into a JSON which keys are the games’ names.
So your command would now look like this:

$(eval game = '$(twitch $(channel) "{{game}}")'; mYaw = $(urlfetch json https://pastebin.com/raw/XXXXXXXX)[game]; `${Math.round((360 / (mYaw * $(1) * $(2)) * 2.54) * 100) / 100.0} cm/360`;)

And your Pastebin like so (the games must match the casing of how Twitch writes them):

{
  "Apex Legends": 0.022,
  "Call of Duty": 0.0066,
  "VALORANT": 0.06996
}

Please note that you have to replace XXXXXXXX in the commands by your paste ID.
Also, it’s not guaranteed that I got your calculation right due to the poor formatting of your post.