Randomize choices between different proposals with Firebase Realtime Database
Backend code for powering a Mattermost slash command that allow to randomize some choices. Can be used in place a dice, or to make random choices between different proposals.
What does this do?
By calling a /rnd slash command, you can:
• Launch a dice one time:
• Launch the dice 50 times:
/rnd 6 50
• Decide to go left or right:
/rnd LEFT | RIGHT
• Make a choice between several possibilities over a defined number of trials:
/rnd 100 | One Choice | Another one | A final possibility
Setting this up requires doing some initial Firebase setup, then doing some initial Mattermost setup, then wiring the two systems together.