aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/latex.py
diff options
context:
space:
mode:
authorGravatar Icebluewolf <[email protected]>2021-05-17 12:50:04 -0500
committerGravatar GitHub <[email protected]>2021-05-17 12:50:04 -0500
commita174b78114d4204e74e11a820ddf36f00d293112 (patch)
tree9404dbf50e3f11c7c83b782733aa30d7d15fcae2 /bot/exts/evergreen/latex.py
parentRemove comments and update docstrings (diff)
parentMerge pull request #726 from Objectivitix/main (diff)
Merge branch 'main' into http_status_command_randomness
Diffstat (limited to 'bot/exts/evergreen/latex.py')
-rw-r--r--bot/exts/evergreen/latex.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/bot/exts/evergreen/latex.py b/bot/exts/evergreen/latex.py
index c4a8597c..36c7e0ab 100644
--- a/bot/exts/evergreen/latex.py
+++ b/bot/exts/evergreen/latex.py
@@ -9,6 +9,8 @@ import discord
import matplotlib.pyplot as plt
from discord.ext import commands
+from bot.bot import Bot
+
# configure fonts and colors for matplotlib
plt.rcParams.update(
{
@@ -89,6 +91,11 @@ class Latex(commands.Cog):
await ctx.send(file=discord.File(image, "latex.png"))
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Latex Cog."""
- bot.add_cog(Latex(bot))
+ # As we have resource issues on this cog,
+ # we have it currently disabled while we fix it.
+ import logging
+ logging.info("Latex cog is currently disabled. It won't be loaded.")
+ return
+ bot.add_cog(Latex())