From c5a224c7190a060b741473e4a70cef7c3d7fdef7 Mon Sep 17 00:00:00 2001 From: flifloo Date: Mon, 2 Nov 2020 18:00:07 +0100 Subject: [PATCH] Fix group subject bulk command et update group regex --- extensions/pcp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/pcp.py b/extensions/pcp.py index f56d750..d239fee 100644 --- a/extensions/pcp.py +++ b/extensions/pcp.py @@ -9,7 +9,7 @@ from administrator.logger import logger extension_name = "PCP" logger = logger.getChild(extension_name) -group_re = re.compile(r"(G[0-9]S[0-9]|ASPE|LP DEVOPS|LP ESSIR|LP SID)") +group_re = re.compile(r"(G[0-9]S[0-9]|ASPE|LP DEVOPS2?|LP ESSIR|LP SID)") msg_url_re = re.compile(r"https://.*discord.*\.com/channels/[0-9]+/([0-9+]+)/([0-9]+)") role_mention_re = re.compile(r"<@&[0-9]+>") user_mention_re = re.compile(r"<@![0-9]+>") @@ -152,7 +152,7 @@ class PCP(commands.Cog): if not role_mention_re.fullmatch(mention): raise BadArgument() for n in names: - await ctx.invoke(self.pcp_group_subject_add, n) + await ctx.invoke(self.pcp_group_subject_add, n, mention) @pcp_group_subject.group("remove", pass_context=True) async def pcp_group_subject_remove(self, ctx: commands.Context, name: str, group: str):