From e369b23e96dedeb55ee646553e4c566f50697af4 Mon Sep 17 00:00:00 2001 From: flifloo Date: Thu, 5 Nov 2020 15:02:15 +0100 Subject: [PATCH] Add support of disabled extension for tex --- extensions/tex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/tex.py b/extensions/tex.py index f94620d..93e0fee 100644 --- a/extensions/tex.py +++ b/extensions/tex.py @@ -3,6 +3,7 @@ from urllib.parse import urlencode from discord import Embed from discord.ext import commands +from administrator.check import is_enabled from administrator.logger import logger @@ -18,6 +19,7 @@ class TeX(commands.Cog): return "Render TeX formula" @commands.group("tex", pass_context=True) + @is_enabled() async def tex(self, ctx: commands.Context): if ctx.message.content.count("`") == 2: start = ctx.message.content.find("`")