Add support of disabled extension for tex
This commit is contained in:
parent
827ec2aadb
commit
e369b23e96
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ from urllib.parse import urlencode
|
||||||
from discord import Embed
|
from discord import Embed
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
|
from administrator.check import is_enabled
|
||||||
from administrator.logger import logger
|
from administrator.logger import logger
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,6 +19,7 @@ class TeX(commands.Cog):
|
||||||
return "Render TeX formula"
|
return "Render TeX formula"
|
||||||
|
|
||||||
@commands.group("tex", pass_context=True)
|
@commands.group("tex", pass_context=True)
|
||||||
|
@is_enabled()
|
||||||
async def tex(self, ctx: commands.Context):
|
async def tex(self, ctx: commands.Context):
|
||||||
if ctx.message.content.count("`") == 2:
|
if ctx.message.content.count("`") == 2:
|
||||||
start = ctx.message.content.find("`")
|
start = ctx.message.content.find("`")
|
||||||
|
|
Reference in a new issue