primary expression expected, got '#'
LOL... sorry, I am an idiot

I have been programming in Python a lot lately... and Python uses "#" for comments... LUA (which Dicebot uses), uses "--" for comments!

So, replace: #nonce not reset
with: --nonce not reset
and replace: #nonce reset, continue
with: --nonce reset, continue
Or just delete both lines with #... they're not actually required.