Trying to install Opus lib via Docker instruction

This commit is contained in:
2021-08-04 17:02:36 +01:00
parent 21d5cba5f5
commit 63146bd042
3 changed files with 5 additions and 4 deletions

View File

@ -68,9 +68,10 @@ class TCardCommand(commands.Cog, name='T-Card Command'):
await ctx.send(content=f'```You have invoked the T-Card in the game {lookup[guildStr][str(role.id)]["game_title"]}. The GM has been notified privately.```', hidden=True)
"""Do the audio thing."""
discord.opus.load_opus()
if not discord.opus.is_loaded():
raise RuntimeError('Opus failed to load')
opus = discord.opus.load_opus('/usr/lib/x86_64-linux-gnu/pwd libopus.so.0')
# discord.opus.load_opus()
# if not discord.opus.is_loaded():
# raise RuntimeError('Opus failed to load')
for vc in ctx.channel.category.voice_channels:
v = await vc.connect()
tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb"))