Add support of disabled extension for tomuss
This commit is contained in:
parent
e369b23e96
commit
04090ccaef
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue