Better Code Hub has indicated that the Squire.py:roll_dice(CTX,DICE) function (the one that holds the !roll command logic) needs refactoring to increase the quality of the codebase. The complaints against it are it's too long and complex. I've been wanting to break out the actual roll logic into a separate method so it could be reused in other commands, like the !rollstats command.
Better Code Hub has indicated that the Squire.py:roll_dice(CTX,DICE) function (the one that holds the
!roll
command logic) needs refactoring to increase the quality of the codebase. The complaints against it are it's too long and complex. I've been wanting to break out the actual roll logic into a separate method so it could be reused in other commands, like the!rollstats
command.