forked from viveksantayana/geas-bot
Remove audio for the time being
This commit is contained in:
parent
c32cef2da5
commit
ca281fb34f
@ -1,7 +1,6 @@
|
|||||||
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 libopus-dev
|
|
||||||
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,16 +68,16 @@ 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."""
|
||||||
opus = discord.opus.load_opus('/usr/lib/x86_64-linux-gnu/pwd libopus.so.0')
|
# opus = discord.opus.load_opus('/usr/lib/x86_64-linux-gnu/pwd libopus.so.0')
|
||||||
# discord.opus.load_opus()
|
# discord.opus.load_opus()
|
||||||
# if not discord.opus.is_loaded():
|
# if not discord.opus.is_loaded():
|
||||||
# raise RuntimeError('Opus failed to load')
|
# 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"))
|
||||||
v.play(tcardaudio)
|
# v.play(tcardaudio)
|
||||||
while v.is_playing(): time.sleep(.1)
|
# while v.is_playing(): time.sleep(.1)
|
||||||
await v.disconnect()
|
# await v.disconnect()
|
||||||
else:
|
else:
|
||||||
"""Send a T-Card to the immediate channel if this is a generic channel."""
|
"""Send a T-Card to the immediate channel if this is a generic channel."""
|
||||||
await ctx.channel.send(embed=embed)
|
await ctx.channel.send(embed=embed)
|
||||||
|
Loading…
Reference in New Issue
Block a user