Hello, I'm new to Power Automate and I'm basically trying to create a bot to roll dice in a Group chat.
I got to a point where I'm just stuck, and I got nowhere else to go. This is the Input and Output i want:
Input Message: "/roll d20"
Output Message/Card: "You rolled a 17!"
And I'm just stuck, I had errors to get the message body, but now I'm stuck trying to do rand( 1 , int( slice( messagebody, 8, 3))+1)
Apparently i cannot sum 1 even after i converted the 20 value to an int (because rand() needs to sum+1 so that it can go up to 20)
Any ideas how to fix this? or even how to help me get the correct flow for this?
Thanks!