mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
reply with the file when possible
This commit is contained in:
parent
c52a908064
commit
809638b1dc
2 changed files with 6 additions and 1 deletions
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"python.linting.pycodestyleEnabled": true,
|
||||
"python.linting.enabled": true
|
||||
"python.linting.enabled": false
|
||||
}
|
|
@ -242,6 +242,11 @@ class Events(commands.Cog):
|
|||
try:
|
||||
voice = await message.author.voice.channel.connect(timeout=10, reconnect=False)
|
||||
except asyncio.TimeoutError:
|
||||
await message.channel.trigger_typing()
|
||||
await message.reply(
|
||||
"I'd play the song but discord's voice servers are shit.",
|
||||
file=discord.File(file)
|
||||
)
|
||||
region = message.author.voice.channel.rtc_region
|
||||
console.log(
|
||||
"Timed out connecting to voice channel: {0.name} in {0.guild.name} "
|
||||
|
|
Loading…
Reference in a new issue