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/hash.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/hash.py') diff --git a/modules/hash.py b/modules/hash.py index 4508d613..04b2f99c 100644 --- a/modules/hash.py +++ b/modules/hash.py @@ -2,10 +2,11 @@ import hashlib from src import ModuleManager, Utils class Module(ModuleManager.BaseModule): - @Utils.hook("received.command.hash", min_args=2, usage=" ") + @Utils.hook("received.command.hash", min_args=2) def hash(self, event): """ - Hash a given string with a given algorithm + :help: Hash a given string with a given algorithm + :usage: """ algorithm = event["args_split"][0].lower() if algorithm in hashlib.algorithms_available: -- cgit v1.3.1-10-gc9f91