Fix voice in container

This commit is contained in:
2021-01-17 17:42:44 +01:00
parent 533b849117
commit 4cb20aa771
3 changed files with 7 additions and 1 deletions

3
bot.py
View File

@@ -47,6 +47,9 @@ last_loeh = 0
config_load()
bot = commands.Bot(command_prefix=config.get('prefix'))
if 'LIBOPUS' in os.environ and not len(os.environ['LIBOPUS']) == 0:
discord.opus.load_opus(os.environ['LIBOPUS'])
async def get_loeh(guild: discord.Guild) -> Optional[discord.Member]:
try: