Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2014 14:30
Show Gist options
  • Save anonymous/9893623 to your computer and use it in GitHub Desktop.
Save anonymous/9893623 to your computer and use it in GitHub Desktop.
thorax - Dice roll verification cache. DiceBot v1.2 by /u/thorax
http://www.reddit.com/r/rollme/comments/21j68m/introducing_the_new_rollme_bot/cggfvzh
This is great and will free my dice-rolling bot from having to implement syntax like yours. You guys have a great dice rolling engine on roll20. :D
One problem you don't handle is that Reddit comments can be edited. So it makes it hard to role-play here and verify there's no cheating, etc.
My bot caches the original post so you can always look back to be sure there's no cheating (i.e. they didn't go back and re-order their prose/rolls to get the best result).
For example:
!roll 3d6+2
!roll 5d8+1
Can you build in some sort of caching support into your dice-roller?
And if you can tweak your output to be prettier for Reddit, it would help as well. :D
I made my dice roller RpgBot as a fun project, I was seriously thinking about re-implementing your engine in Python, but it's much, much better if you guys have a Reddit bot, so I'm very happy to see it. If there's anything I can help with regarding improving your bot, let me know!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment