feat(tts): bunch of changes
All checks were successful
Actions / Lint Code (Ruff) (pull_request) Successful in 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s

- changed how the cog loads, instead of depending on the `PyLavPlayer` cog, it'll just load PyLav from the `__init__.py` file
- moved configuration to a separate file
- added a configuration menu
- added pylav as a dependency in poetry and `info.json`
- set repository python version to `>=3.11,<3.12`
This commit is contained in:
SeaswimmerTheFsh 2024-02-21 10:53:28 -05:00
parent bcca864d02
commit 3c4fba46b6
Signed by: cswimr
GPG key ID: B8953EC01E5C4063
7 changed files with 1275 additions and 51 deletions

View file

@ -1,5 +1,12 @@
from __future__ import annotations
from pylav.extension.red.utils.required_methods import pylav_auto_setup
from pylav.type_hints.bot import DISCORD_BOT_TYPE
from redbot.core.utils import get_end_user_data_statement
from .tts import TTS
__red_end_user_data_statement__ = get_end_user_data_statement(__file__)
async def setup(bot):
await bot.add_cog(TTS(bot))
async def setup(bot: DISCORD_BOT_TYPE):
await pylav_auto_setup(bot, TTS)