by Matthieu Brouillard

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:
/rnd 6
• Launch the dice 50 times:
/rnd 6 50
• Decide to go left or 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.


Matthieu Brouillard