1
0
Fork 0

Add support of disabled extension for tomuss

This commit is contained in:
Ethanell 2020-11-05 15:02:42 +01:00
parent e369b23e96
commit 04090ccaef

View file

@ -8,6 +8,7 @@ from discord.ext.commands import BadArgument
from feedparser import parse from feedparser import parse
import db import db
from administrator.check import is_enabled
from administrator.logger import logger from administrator.logger import logger
@ -25,6 +26,7 @@ class Tomuss(commands.Cog):
return "PCP Univ Lyon 1" return "PCP Univ Lyon 1"
@commands.group("tomuss", pass_context=True) @commands.group("tomuss", pass_context=True)
@is_enabled()
async def tomuss(self, ctx: commands.Context): async def tomuss(self, ctx: commands.Context):
if ctx.invoked_subcommand is None: if ctx.invoked_subcommand is None:
await ctx.invoke(self.tomuss_help) await ctx.invoke(self.tomuss_help)