mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
Latex incoming changes
This commit is contained in:
+4
-1
@@ -3,6 +3,7 @@
|
||||
from __future__ import annotations
|
||||
import io
|
||||
from typing import Optional, List
|
||||
import logging
|
||||
|
||||
import discord
|
||||
from discord import app_commands
|
||||
@@ -128,5 +129,7 @@ class LatexModule(commands.Cog):
|
||||
self.logger.debug("BATCH failed: %s", ", ".join(failed))
|
||||
await interaction.followup.send("✅ Gotowe (ZIP w załączniku)." + (f" ❌ Błędy: {len(failed)}" if failed else ""), files=[discord.File(bio, filename=bio.name)])
|
||||
|
||||
async def setup(bot: commands.Bot):
|
||||
async def setup(bot):
|
||||
logger = logging.getLogger("discord")
|
||||
await bot.add_cog(LatexModule(bot, logger_name="latex"))
|
||||
logger.info("Loading kinky latex module done")
|
||||
|
||||
Reference in New Issue
Block a user