Takes a formatted string and converts it to a dice roll.
Note: I wrote this to be able to do dice rolls through Slack. I am exposing it as an Azure function, which is then called from a custom command in Slack. I'll add more details about this soon.