From 10ef985a8a849a6bbfa8cbb63c2548e42ffb3957 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sun, 30 Sep 2018 17:29:09 +0100 Subject: Switch to using docstring for usage, permission and require_mode --- modules/dice.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/dice.py') diff --git a/modules/dice.py b/modules/dice.py index cb48efae..ee93f570 100644 --- a/modules/dice.py +++ b/modules/dice.py @@ -4,10 +4,11 @@ from src import ModuleManager, Utils ERROR_FORMAT = "Incorrect format! Format must be [number]d[number], e.g. 1d20" class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.roll", min_args=1, usage="[1-5]d[1-20]") + @Utils.hook("received.command.roll", min_args=1) def roll_dice(self, event): """ - Roll some dice, DND style! + :help: Roll some dice, DND style! + :usage: [1-5]d[1-20] """ raw_input = event["args_split"][0] roll = raw_input.split("d") -- cgit v1.3.1-10-gc9f91