Show dice format error when regex doesn't match
This commit is contained in:
parent
ab51bbaefa
commit
c5b9a13b53
1 changed files with 2 additions and 0 deletions
|
@ -45,3 +45,5 @@ class Module(ModuleManager.BaseModule):
|
|||
results_str = ", ".join(str(r) for r in results)
|
||||
event["stdout"].write("Rolled %s and got %s%s" % (
|
||||
roll, results_str, total))
|
||||
else:
|
||||
event["stderr"].write("Invalid format. Example: 2d12+2")
|
||||
|
|
Loading…
Reference in a new issue