Skip to content

Commit

Permalink
🚑 hotfix: setup안되는 critical issue 픽스
Browse files Browse the repository at this point in the history
  • Loading branch information
kms0219kms committed Apr 2, 2024
1 parent f7cff29 commit 2e37793
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/cogs/ZzalUpload.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from discord import Message, Interaction, app_commands
from discord.ext import commands

from src.services import uploadService
from services import uploadService


class ZzalUpload(commands.GroupCog, name="업로드"):
Expand All @@ -25,7 +25,7 @@ async def _upload(self, interaction: Interaction, message: Message, upload_type:
[
uploaded,
errors,
] = await self.uploadService.upload(uploadService.UploadType.ZZAL, message.content, message.attachments)
] = await self.uploadService.upload(upload_type, message.content, message.attachments)

if uploaded > 0:
if uploaded == 1:
Expand Down Expand Up @@ -98,3 +98,7 @@ async def upload_dict(self, interaction: Interaction, message: Message) -> None:
else:
await interaction.response.defer(thinking=True)
self._upload(interaction, message, uploadService.UploadType.DICT)


async def setup(bot: commands.Bot):
await bot.add_cog(ZzalUpload(bot))
Empty file removed src/cogs/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion src/services/uploadService.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from PIL import Image
from synology_api import filestation

from src.plugins import sheet, filestation
from plugins import sheet, filestation


class UploadType(Enum):
Expand Down

0 comments on commit 2e37793

Please sign in to comment.