From deffba71e75bdd7402844a4e1c8965170f9b5cd4 Mon Sep 17 00:00:00 2001 From: flifloo Date: Thu, 5 Nov 2020 14:47:58 +0100 Subject: [PATCH] Add support of disabled extension for pcp --- extensions/pcp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/pcp.py b/extensions/pcp.py index 00721a1..0a3df74 100644 --- a/extensions/pcp.py +++ b/extensions/pcp.py @@ -5,6 +5,7 @@ from discord.ext import commands from discord.ext.commands import BadArgument, MissingPermissions import db +from administrator.check import is_enabled from administrator.logger import logger @@ -23,6 +24,7 @@ class PCP(commands.Cog): return "PCP Univ Lyon 1" @commands.group("pcp", pass_context=True) + @is_enabled() @commands.guild_only() async def pcp(self, ctx: commands.Context): group = ctx.message.content.replace(f"{ctx.prefix}{ctx.command} ", "").upper()