From 3414431869d53b1b8c893520ae6ca6f1a8f0cc61 Mon Sep 17 00:00:00 2001 From: grioghar Date: Mon, 16 May 2022 13:36:24 -0500 Subject: [PATCH] Edits to help commands Making some of the help commands more clear based on customer feedback. --- plugins/sdm/accessbot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/sdm/accessbot.py b/plugins/sdm/accessbot.py index 1f2dbf5..0e086d6 100644 --- a/plugins/sdm/accessbot.py +++ b/plugins/sdm/accessbot.py @@ -79,10 +79,10 @@ def configure(self, configuration): def check_configuration(self, configuration): pass - @re_botcmd(pattern=ACCESS_REGEX, flags=re.IGNORECASE, prefixed=False, re_cmd_name_help="access to resource-name [--reason text] [--duration duration]") + @re_botcmd(pattern=ACCESS_REGEX, flags=re.IGNORECASE, prefixed=False, re_cmd_name_help="access to [--reason text] [--duration duration]") def access_resource(self, message, match): """ - Grant access to a resource (using the requester's email address) + Grant access to (using the requester's email address) """ arguments = re.sub(ACCESS_REGEX, "\\1", match.string.replace("*", "")) if re.match("^role (.*)", arguments): @@ -101,10 +101,10 @@ def access_resource(self, message, match): return yield from self.get_resource_grant_helper().request_access(message, resource_name, flags=flags) - @re_botcmd(pattern=ASSIGN_ROLE_REGEX, flags=re.IGNORECASE, prefixed=False, re_cmd_name_help="access to role role-name") + @re_botcmd(pattern=ASSIGN_ROLE_REGEX, flags=re.IGNORECASE, prefixed=False, re_cmd_name_help="access to role ") def assign_role(self, message, match): """ - Grant access to all resources in a role (using the requester's email address) + Grant access to all resources in (using the requester's email address) """ if not self._platform.can_assign_role(message): return