forked from viveksantayana/geas-bot
Trying to install Opus lib via Docker instruction
This commit is contained in:
parent
21d5cba5f5
commit
63146bd042
@ -1,6 +1,7 @@
|
|||||||
FROM python:3.9.6-buster
|
FROM python:3.9.6-buster
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
RUN apt-get install libopus0
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
CMD python3 -u ./bot.py
|
CMD python3 -u ./bot.py
|
@ -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)
|
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."""
|
"""Do the audio thing."""
|
||||||
discord.opus.load_opus()
|
opus = discord.opus.load_opus('/usr/lib/x86_64-linux-gnu/pwd libopus.so.0')
|
||||||
if not discord.opus.is_loaded():
|
# discord.opus.load_opus()
|
||||||
raise RuntimeError('Opus failed to load')
|
# if not discord.opus.is_loaded():
|
||||||
|
# raise RuntimeError('Opus failed to load')
|
||||||
for vc in ctx.channel.category.voice_channels:
|
for vc in ctx.channel.category.voice_channels:
|
||||||
v = await vc.connect()
|
v = await vc.connect()
|
||||||
tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb"))
|
tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb"))
|
||||||
|
@ -11,7 +11,6 @@ discord-py-slash-command==2.4.0
|
|||||||
discord.py==1.7.3
|
discord.py==1.7.3
|
||||||
idna==3.2
|
idna==3.2
|
||||||
multidict==5.1.0
|
multidict==5.1.0
|
||||||
opuslib==3.0.1
|
|
||||||
ordered-set==4.0.2
|
ordered-set==4.0.2
|
||||||
packaging==21.0
|
packaging==21.0
|
||||||
pycparser==2.20
|
pycparser==2.20
|
||||||
|
Loading…
Reference in New Issue
Block a user