The chat conversation meanders like a herd of kittens in a field of catnip. During one of these lucid dreams, someone (I blame @komemiute by default) mentioned RPG’s and roleplaying paper games. This then led to adding a ‘dice’ macro here. It’s a bot that rolls dice. We’ve reached peak forum.
To use type in a chat or post the following text macro:
NOTE: To stop the dice rolling in this example post, I’ve replaced the square brackets [ ] with round parenthesize ( ). To use it for real please use inside those square brackets when typing
Rolls a six-sided dice.
Rolls two twenty-sided dice.
You get the idea. If the macro inside the [square brackets] is spotted in the text then the ‘dicebot’ bot (ooooh!) takes ownership of the post (to stop editing) and then does the random rolling magic.
I thought about better ways to prevent people from cheating by editing their post, but then realized that if you want to cheat then it would be better to give you that tiny life improvement all things considered and that taking it away would be cruel.
I’m curious for more bot ideas now, as in this was really just an excuse to fiddle around with something simple and see if it worked.
The input can be a post text within the mark-up we have, i.e. [command abc] where command can do things and look for parameters on abc. It could looks stuff up for the user and then replace the command with something else.