mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
support any audio file
This commit is contained in:
parent
32f512a5fa
commit
6db65b26a8
1 changed files with 1 additions and 1 deletions
|
@ -2453,7 +2453,7 @@ class OtherCog(commands.Cog):
|
||||||
|
|
||||||
_ft = "wav"
|
_ft = "wav"
|
||||||
for attachment in message.attachments:
|
for attachment in message.attachments:
|
||||||
if attachment.content_type == "audio/":
|
if attachment.content_type.startswith("audio/"):
|
||||||
_ft = attachment.filename.split(".")[-1]
|
_ft = attachment.filename.split(".")[-1]
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue