merge pull request #40 from levina-lab/main

push commit
This commit is contained in:
levina 2021-11-07 18:01:18 +07:00 committed by GitHub
commit e41a0b28dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.9-nodejs16
FROM nikolaik/python-nodejs:python3.10-nodejs17
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg \
&& apt-get clean \

View File

@ -203,6 +203,7 @@ async def play(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await suhu.delete()
await m.reply_text(f"🚫 error: `{ep}`")
else:
@ -252,6 +253,7 @@ async def play(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await suhu.delete()
await m.reply_text(f"🚫 error: `{ep}`")
@ -370,4 +372,5 @@ async def stream(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await suhu.delete()
await m.reply_text(f"🚫 error: `{ep}`")

View File

@ -120,7 +120,7 @@ async def vplay(c: Client, m: Message):
pass
except Exception as e:
return await m.reply_text(
f"❌ **userbot failed to join**\n\n**reason**:{e}"
f"❌ **userbot failed to join**\n\n**reason**: {e}"
)
if replied:
@ -231,6 +231,7 @@ async def vplay(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await loser.delete()
await m.reply_text(f"🚫 error: `{ep}`")
else:
@ -284,6 +285,7 @@ async def vplay(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await loser.delete()
await m.reply_text(f"🚫 error: `{ep}`")
@ -424,4 +426,5 @@ async def vstream(c: Client, m: Message):
reply_markup=keyboard,
)
except Exception as ep:
await loser.delete()
await m.reply_text(f"🚫 error: `{ep}`")

View File

@ -4,7 +4,7 @@ ffmpeg-python
py-tgcalls==0.8.1rc1
git+https://github.com/pyrogram/pyrogram@master
git+https://github.com/yt-dlp/yt-dlp@master
youtube-search-python
youtube-search-python==1.4.9
youtube-search
httpx==0.13.3
python-dotenv