It has been a long time since I have done any PHP work, and was considering a Hubzilla "app" as a little project.
This would be a dice roller for use by role players, or "Just because".
I have a private channel on my server which is used for a play-by-post Dungeons and Dragons campaign with my daughters. Since I work evenings, it makes it easy to keep track of and continue our game when schedules do not mesh. At the moment, I have been doing the dice rolls for them.
This is how I envision the mod working: The player would type what action they are taking as usual. With the text formatting buttons, there would be a new dice roll button. Clicking it would present the user with a selection of dice types, and a box next to each for them to input how many of that type they want to roll. Clicking the finish button would add a tag like [diceroll] into the message.
The message ID will be recorded in the database along with the roll requested, and generated result. When the message is posted, only then will the result be displayed. This keeps unscrupulous players from cheating by using preview to see what the result is before posting. And since only one dice roll can be created per MID, it prevents someone from generating a roll, then editing the message, deleting the roll and adding a new one.
I will also have a regular "app" interface. Rolls created in this standalone mode will not be stored in the database.
This is all in the planning stages at this point, but I don't think it will be that difficult.