Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

from store.claimtime import ClaimtimeDBStore
from errors import ModuleDisabled
import wavelink

MISSING: Any = discord.utils.MISSING
PREMIUM_SKU_ID: Final[int] = 1256218013930094682
Expand Down Expand Up @@ -204,6 +205,7 @@ def __init__(
self.claimtime_store: ClaimtimeDBStore = ClaimtimeDBStore(self)
self._disabled_modules: dict[int, list[str]] = {}
self.__wh_url: str | None = debug_webhook_url
self.wavelink_node_pool: wavelink.Pool = wavelink.Pool()

self.add_check(self.module_enabled)

Expand Down Expand Up @@ -600,3 +602,8 @@ async def on_ready(self) -> None:
colour=discord.Colour.blue(),
),
)

async def close(self) -> None:
await self.pool.close()
await self.wavelink_node_pool.close()
await super().close()
2 changes: 2 additions & 0 deletions cogs/lyrics_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ async def callback(self, interaction: discord.Interaction['LegacyBot']) -> None:
str(error),
ephemeral=True,
)
return

view = LyricsGeneratorView(lyrics, interaction.client, interaction.user.id, song)
await interaction.edit_original_response(
view=view,
Expand Down
Loading