After issuing a !join command, the bot hangs at self.voiceclient = await command.author.voice.channel.connect().
It successfully joins the voice channel, however, voice.channel.connect() doesn't return anything, thus causing the bot to hang at that point.
Updating to the latest version of the Discord.py fork causes other issues:
# docker run a33e5e666956dcbe1c508f97e31a954bc9651b60e1eab85467bc72d045adedb0
Traceback (most recent call last):
File "run.py", line 7, in
from discordphone.DiscordPhone import DiscordPhone
File "/discordphone/DiscordPhone.py", line 7, in
import discord
File "/discord/init.py", line 21, in
from typing import NamedTuple, Literal
ImportError: cannot import name 'Literal'
#
After issuing a !join command, the bot hangs at self.voiceclient = await command.author.voice.channel.connect(). It successfully joins the voice channel, however, voice.channel.connect() doesn't return anything, thus causing the bot to hang at that point.
This appears to be a known issue with older versions of discord.py, as shown here: https://github.com/Rapptz/discord.py/issues/2372
Updating to the latest version of the Discord.py fork causes other issues:
# docker run a33e5e666956dcbe1c508f97e31a954bc9651b60e1eab85467bc72d045adedb0 Traceback (most recent call last): File "run.py", line 7, in
from discordphone.DiscordPhone import DiscordPhone
File "/discordphone/DiscordPhone.py", line 7, in
import discord
File "/discord/init.py", line 21, in
from typing import NamedTuple, Literal
ImportError: cannot import name 'Literal'
#