feat(tts): bunch of changes
- 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:
parent
bcca864d02
commit
3c4fba46b6
7 changed files with 1275 additions and 51 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue