WIP: Add TTS cog #18
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ class TTS(commands.Cog):
|
||||||
pylav = self.bot.get_cog("PyLavPlayer")
|
pylav = self.bot.get_cog("PyLavPlayer")
|
||||||
self.check_pylav.stop()
|
self.check_pylav.stop()
|
||||||
if pylav is None:
|
if pylav is None:
|
||||||
self.bot.remove_cog("TTS")
|
await self.bot.send_to_owners("You need to install PyLav to use the TTS cog.\nThe cog has been automatically unloaded.\nSee https://github.com/PyLav/Red-Cogs")
|
||||||
|
await self.bot.remove_cog("TTS")
|
||||||
raise RuntimeError("You need to install PyLav to use this cog. See https://github.com/PyLav/Red-Cogs")
|
raise RuntimeError("You need to install PyLav to use this cog. See https://github.com/PyLav/Red-Cogs")
|
||||||
|
|
||||||
async def on_message(self, message: Message):
|
async def on_message(self, message: Message):
|
||||||
|
|
Loading…
Reference in a new issue