mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d58a7859a4
3 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="dataSourceStorageLocal" created-in="PY-241.14494.241">
|
||||
<component name="dataSourceStorageLocal" created-in="PY-233.14475.56">
|
||||
<data-source name="main" uuid="28efee07-d306-4126-bf69-01008b4887e2">
|
||||
<database-info product="SQLite" version="3.39.2" jdbc-version="2.1" driver-name="SQLite JDBC" driver-version="3.39.2.0" dbms="SQLITE" exact-version="3.39.2" exact-driver-version="3.39">
|
||||
<identifier-quote-string>"</identifier-quote-string>
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
<component name="Black">
|
||||
<option name="sdkName" value="Python 3.11 (LCC-bot)" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (LCC-bot)" project-jdk-type="Python SDK" />
|
||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (LCC-bot)" project-jdk-type="Python SDK" />
|
||||
</project>
|
|
@ -752,7 +752,7 @@ class OtherCog(commands.Cog):
|
|||
|
||||
_ft = "wav"
|
||||
for attachment in message.attachments:
|
||||
if attachment.content_type.startswith("audio/"):
|
||||
if attachment.content_type.startswith(("audio/", "video/")):
|
||||
_ft = attachment.filename.split(".")[-1]
|
||||
break
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue