From 6dc5addf5f2c3b268d321b5fb45f388c6f5dcc49 Mon Sep 17 00:00:00 2001 From: flifloo Date: Sun, 1 Nov 2020 21:22:41 +0100 Subject: [PATCH] Group join delete also new comer role --- extensions/pcp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/pcp.py b/extensions/pcp.py index fdfa8ce..3eec875 100644 --- a/extensions/pcp.py +++ b/extensions/pcp.py @@ -30,7 +30,7 @@ class PCP(commands.Cog): if not role: raise BadArgument() - roles = list(filter(lambda r: group_re.fullmatch(r.name.upper()), ctx.author.roles)) + roles = list(filter(lambda r: group_re.fullmatch(r.name.upper()) or r.name == "nouveau venu", ctx.author.roles)) if role.name in map(lambda r: r.name, roles): raise BadArgument() elif roles: