From 04090ccaef1fb065baf52aa7c266175798b40c34 Mon Sep 17 00:00:00 2001 From: flifloo Date: Thu, 5 Nov 2020 15:02:42 +0100 Subject: [PATCH] Add support of disabled extension for tomuss --- extensions/tomuss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/tomuss.py b/extensions/tomuss.py index e52ba7f..1de3739 100644 --- a/extensions/tomuss.py +++ b/extensions/tomuss.py @@ -8,6 +8,7 @@ from discord.ext.commands import BadArgument from feedparser import parse import db +from administrator.check import is_enabled from administrator.logger import logger @@ -25,6 +26,7 @@ class Tomuss(commands.Cog): return "PCP Univ Lyon 1" @commands.group("tomuss", pass_context=True) + @is_enabled() async def tomuss(self, ctx: commands.Context): if ctx.invoked_subcommand is None: await ctx.invoke(self.tomuss_help)