Add support of disabled extension for pcp
This commit is contained in:
parent
a10ff7daf0
commit
deffba71e7
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@ from discord.ext import commands
|
||||||
from discord.ext.commands import BadArgument, MissingPermissions
|
from discord.ext.commands import BadArgument, MissingPermissions
|
||||||
|
|
||||||
import db
|
import db
|
||||||
|
from administrator.check import is_enabled
|
||||||
from administrator.logger import logger
|
from administrator.logger import logger
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +24,7 @@ class PCP(commands.Cog):
|
||||||
return "PCP Univ Lyon 1"
|
return "PCP Univ Lyon 1"
|
||||||
|
|
||||||
@commands.group("pcp", pass_context=True)
|
@commands.group("pcp", pass_context=True)
|
||||||
|
@is_enabled()
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
async def pcp(self, ctx: commands.Context):
|
async def pcp(self, ctx: commands.Context):
|
||||||
group = ctx.message.content.replace(f"{ctx.prefix}{ctx.command} ", "").upper()
|
group = ctx.message.content.replace(f"{ctx.prefix}{ctx.command} ", "").upper()
|
||||||
|
|
Reference in a new issue